w3c/activitystreams

Is there a minor mistake in the Remove example?

sfolsom opened this issue · 3 comments

Should this (

) be using the as:origin property rather than as:target?

See:

<code>object</code>. If specified, the <code>origin</code>
.

It seems to be that origin ("from") would be more fitting than target ("to") for the Remove activity, and that example.

Remove object from location.

Add object from location to location.
Remove object from location.
Delete object from location.
Move object from location to location.
...

I came here to open exactly this issue. The description text is correct, but the Remove example was probably wrongly copy pasted from the Add example.

evanp commented

So, it seems like an error in the example code. The correct resolution is to add an erratum that says "target" should be "origin" in this example.

Unfortunately, ActivityPub defines the Remove activity to use "target". So, we will probably need to recommend that implementers support "origin" by default, and "target" as a fallback, regardless of the unfortunate illogic of it.