Skip to content

Restore compatibility with Mastodon#2063

Merged
BentiGorlich merged 1 commit intomainfrom
fix/mastodon-compatibility
Mar 25, 2026
Merged

Restore compatibility with Mastodon#2063
BentiGorlich merged 1 commit intomainfrom
fix/mastodon-compatibility

Conversation

@BentiGorlich
Copy link
Copy Markdown
Member

We didn't really do anything wrong, our actors and activities are compliant, however, Mastodon determines whether it does support an actor/activity by the default https://www.w3.org/ns/activitystreams being present in the @context variable. In order to fix this quickly and still keep the json-ld compliance, I just moved the 2 default URLs into the referenced contexts.

The error in the log looks like this (I couldn't find it in my production log, only on my dev instance):

Truncated content: {"error":"Unsupported JSON-LD context for document URL_HERE"}.

This incompatibility was introduced in #1997

We didn't really do anything wrong, our actors and activities are compliant, however, Mastodon determines whether it does support an actor/activity by the default `https://www.w3.org/ns/activitystreams` being present in the `@context` variable. In order to fix this quickly and still keep the json-ld compliance, I just moved the 2 default URLs into the referenced contexts.

This incompatibility was introduced in #1997
@BentiGorlich BentiGorlich self-assigned this Mar 24, 2026
@BentiGorlich BentiGorlich added the activitypub ActivityPub related issues label Mar 24, 2026
@blued-gear
Copy link
Copy Markdown
Collaborator

Did you also create an Issue at Mastodons repo?

@BentiGorlich BentiGorlich merged commit fbea4d7 into main Mar 25, 2026
9 checks passed
@BentiGorlich BentiGorlich deleted the fix/mastodon-compatibility branch March 25, 2026 09:01
@BentiGorlich
Copy link
Copy Markdown
Member Author

No I didn't because I think it is highly unlikely that they'll fix it. It seems to me like very intended behaviour. Should I do it anyway?

@blued-gear
Copy link
Copy Markdown
Collaborator

It doesn't hurt and costs nothing even if it just lays there unanswered (except for a few minutes). I can do it too if you don't have time currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

activitypub ActivityPub related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants