friends icon indicating copy to clipboard operation
friends copied to clipboard

AP Update activities for actors should contain full object, not just id

Open snarfed opened this issue 11 months ago • 3 comments

Hi @akirk et al! First off, thanks for building and maintaining this plugin. It's great!

I noticed an interesting quirk of the Update AP activities for actors that Friends sends out: they don't include the complete new actor object, just the id. eg something like:

{
  "@context": ["https://www.w3.org/ns/activitystreams"],
  "type": "Update",
  "id": "https://cmalt.simonwood.info/@blog#activity-update-1737411556",
  "actor": "https://cmalt.simonwood.info/@blog",
  "object": "https://cmalt.simonwood.info/@blog",
  "to": "https://www.w3.org/ns/activitystreams#Public"
}

Technically AP says S2S Updates should include the complete object (more):

Server to server interaction and updates from the server to the client should contain the entire new representation of the object...

Not a big deal, just FYI. Thanks in advance!

snarfed avatar Jan 20 '25 22:01 snarfed

i think the sentence before the sentence you quote above is important, so here is the quote including the first sentence

Note that this behavior is for client to server interaction where the client is posting to the server only. Server to server interaction and updates from the server to the client should contain the entire new representation of the object,

naturzukunft avatar Jan 21 '25 04:01 naturzukunft

Actually Friends doesn't sent out updates, this bug is in the ActivityPub plugin

@mattwiebe, could you create an issue over there? Thanks!

akirk avatar Jan 22 '25 19:01 akirk

Actually Friends doesn't sent out updates, this bug is in the ActivityPub plugin

@mattwiebe, could you create an issue over there? Thanks!

Done: https://github.com/Automattic/wordpress-activitypub/issues/1203

mattwiebe avatar Jan 23 '25 03:01 mattwiebe