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

Fix @context on actor, note, activity, and collection objects #10

Open
johnspurlock opened this issue Aug 26, 2024 · 1 comment
Open

Comments

@johnspurlock
Copy link

johnspurlock commented Aug 26, 2024

Need to include the non-activitystreams terms in your context array

e.g. https://browser.pub/https://ap.podcastindex.org/podcasts?id=920666

currently:

"@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1"
],

should be:

"@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
        "toot": "http://joinmastodon.org/ns#",
        "discoverable": "toot:discoverable",
        "indexable": "toot:indexable",
        "memorial": "toot:memorial",
        "featured": {
            "@id": "toot:featured",
            "@type": "@id"
        }
    }
]

Similiarly in Note objects

e.g. https://browser.pub/https://ap.podcastindex.org/episodes?id=920666&statusid=0

(and activities e.g. https://ap.podcastindex.org/episodes?id=920666&statusid=PC20-190&resource=activity)

currently:

"@context": [
    "https://www.w3.org/ns/activitystreams"
],

should be:

"@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
        "ostatus": "http://ostatus.org#",
        "conversation": "ostatus:conversation"
    }
]

And in outbox collections:

e.g. https://browser.pub/https://ap.podcastindex.org/outbox?id=920666&page=true

currently:

"@context": "https://www.w3.org/ns/activitystreams",

should be:

"@context": [
    "https://www.w3.org/ns/activitystreams",
    {
        "ostatus": "http://ostatus.org#",
        "conversation": "ostatus:conversation",
        "litepub": "http://litepub.social/ns#",
        "directMessage": "litepub:directMessage"
    }
]
@johnspurlock johnspurlock changed the title Fix @context on actor objects Fix @context on actor and note objects Aug 26, 2024
@johnspurlock johnspurlock changed the title Fix @context on actor and note objects Fix @context on actor, note, and activity objects Aug 26, 2024
@johnspurlock johnspurlock changed the title Fix @context on actor, note, and activity objects Fix @context on actor, note, activity, and collection objects Aug 26, 2024
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
@johnspurlock and others