Accept as:Public as object of Follow activity for Mastodon relay interface #114

Open
opened 2026-04-23 15:33:31 +00:00 by evanp · 0 comments

The follow handling for the Mastodon relay interfaces only checks for the fully-expanded URL of the Public id, https://www.w3.org/ns/activitystreams#Public.

However, the output from a compacting JSON-LD process will use the abbreviated namespaced version, as:Public. Since this is defined as the proper format for AS2 ("The serialized JSON form of an Activity Streams 2.0 document MUST be consistent with what would be produced by the standard JSON-LD 1.0 Processing Algorithms and API [JSON-LD-API] Compaction Algorithm"), Pleroma-Relay should at least support it as a fallback.

The follow handling for the Mastodon relay interfaces only checks for the fully-expanded URL of the `Public` id, `https://www.w3.org/ns/activitystreams#Public`. However, the output from a compacting JSON-LD process will use the abbreviated namespaced version, `as:Public`. Since this is defined as the proper format for AS2 ("The serialized JSON form of an Activity Streams 2.0 document MUST be consistent with what would be produced by the standard JSON-LD 1.0 Processing Algorithms and API [JSON-LD-API] Compaction Algorithm"), Pleroma-Relay should at least support it as a fallback.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/relay#114
No description provided.