Comment on FEP-c3ab: Referencing existing objects in client-to-server Create

trwnh@socialhub.activitypub.rocks ⁨20⁩ ⁨hours⁩ ago

It’s reasonable. But is there any reason why not consider an Announce activity? It’s perfectly fine to have an object be “created” beforehand and then later announce its existence, even much later.

It’s also possible to send the Create notification with any published date, even a different published date than the object.

An Activity can have different addressing than its object. The addressing of the activity controls where the Activity will be delivered. The addressing of the object might control who can fetch the object. The former should probably be a subset of the latter, and the ActivityPub specification suggests merging the audiences, but they don’t have to be the same.

I would still use a 201 Created if you are talking about a POST request to the outbox. There, the 201 status indicates that the activity was published, not that the object was created.

This might be clarified upstream within the ActivityPub specification soon, if that is a suitable answer to you. https://github.com/w3c/activitypub/issues/438 is on the 1.1 milestone. The idea of what exactly it means to “create” an object within ActivityPub is something that we need to clarify for the next revision of the specification. See also https://github.com/w3c/activitypub/issues/662 for tracking this issue.

original
Sort:hotnewtop