Stop putting actor
on non-Activity objects
#770
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#770
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://www.w3.org/TR/activitystreams-vocabulary/#dfn-actor
The
actor
property's domain is Activity, so it is only valid on activities. It should be removed from the Object representation of posts.I haven't verified whether activities produced by Akkoma use both
actor
andattributedTo
in the same way that objects do, but if so, then they should removeattributedTo
as well.Upstream issue: https://git.pleroma.social/pleroma/pleroma/-/issues/3269
funny thing, there’s a ~4 year old todo for that
# TODO: Remove actor field for Objects
Internally *oma always uses
actor
and normalises incoming data to create this field fromattributedTo
and sync both values for objects. (i’m guessing that’s a relic from pre-ActivityPub days when AS was used as a purely internal format)Incoming Activities which don’t already contain an
attributedTo
field shouldn’t be affected by this afaikIntuitively i’d expect other implementations to just ignore the extra
actor
field. Does this cause issues with JSON-LD normalisation or other kinds of issues?Activities are also objects, shouldn’t this technically be valid?
It causes problems for inferencing. Because
actor
's domain is Activity, anything with anactor
will be seen as an Activity. So plain Note objects for example will be erroneously detected as Activity.OK, that's good, but if the sync works in the other direction, then there might be issues with FEP-0391 which uses
attributedTo
on the activity to point to the activity that caused it. In that case, Akkoma will receive an activity that has both actor and attributedTo, but they will not be the same.Merged upstream in MR 4105 https://git.pleroma.social/pleroma/pleroma/-/merge_requests/4105 and commit e944b1529862a2a40158803da5fe04a024f7aa4f
e944b15298