Stop putting actor on non-Activity objects #770
Labels
No labels
approved, awaiting change
bug
cannot reproduce
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs change/feedback
needs docs
needs tests
not a bug
not our 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…
Add table
Add a link
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
actorproperty'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
actorandattributedToin the same way that objects do, but if so, then they should removeattributedToas 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 ObjectsInternally *oma always uses
actorand normalises incoming data to create this field fromattributedToand 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
attributedTofield shouldn’t be affected by this afaikIntuitively i’d expect other implementations to just ignore the extra
actorfield. 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 anactorwill 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
attributedToon 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
e944b15298e944b15298