WordPress and 844e
-
Hi pfefferle@mastodon.social, I was just curious why activitypub.blog@activitypub.blog was a user and not a group on NodeBB, so I checked out its AP representation on BrowserStack.
This stood out:
... "generator": { "type": "Application", "implements": { "href": "https://datatracker.ietf.org/doc/html/rfc9421", "name": "RFC-9421: HTTP Message Signatures" } }, ...I thought "how would you be able to represent multiple implementations if
implementsis an object?It looks like it is supposed to be an array, according to FEP 844e.
As an aside, I guess not all WP actors are groups? I feel like we've had this conversation before though hehe.
-
@julian @activitypub.blog @silverpill
1. because the blog is in single user mode... no other actors except the blog.
2. oops!
-
@julian @activitypub.blog @silverpill seems to be a bug in the spec btw. https://codeberg.org/fediverse/fep/src/branch/main/fep/844e/fep-844e.md#discovery-through-an-actor
-
Every single value is equivalent to an array of a single value in JSON-LD... so these are equivalent:
"implements": { "href": "https://datatracker.ietf.org/doc/html/rfc9421", "name": "RFC-9421: HTTP Message Signatures" }"implements": [{ "href": "https://datatracker.ietf.org/doc/html/rfc9421", "name": "RFC-9421: HTTP Message Signatures" }]So it doesn't need "to be an array", but not making it an array could trip up some clients that are not JSON-LD aware.
-
silverpill@mitra.social the second code example in FEP 844e is wrong though, it uses
[and]instead of{and}around the "object" inimplements