Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target audience is not specified #50

Open
silverpill opened this issue Sep 28, 2024 · 1 comment
Open

Target audience is not specified #50

silverpill opened this issue Sep 28, 2024 · 1 comment

Comments

@silverpill
Copy link

Example: https://activitypub.ghost.org/.ghost/activitypub/article/75c9d566-c866-4101-88d0-f294455f79f8

This Article object doesn't have to and cc properties, which identify entities and actors an object is addressed to. If the article is public, it should be addressed to a special https://www.w3.org/ns/activitystreams#Public collection: https://www.w3.org/TR/activitypub/#public-addressing

@dahlia
Copy link
Contributor

dahlia commented Sep 29, 2024

Article objects should have a to property here:

const article = new Article({
id: ctx.getObjectUri(Article, { id: post.uuid }),
attribution: author,
name: post.title,
content: post.html,
image: toURL(post.feature_image),
published: Temporal.Instant.from(post.published_at),
preview: preview,
url: toURL(post.url),
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants