Skip fetching unknown actors when on some events
ClearlyClaire opened this issue · 3 comments
ClearlyClaire commented
It may make sense for gup.pe to skip fetching unknown actors on certain events, such as:
- a
Delete
where theactor
and theobject
are one and the same: this is how Mastodon signals account deletions, so fetching the actor would not work (since it is deleted already), and since you don't know the actor, you have nothing to delete - an
Update
where theactor
and theobject
are one and the same: if you don't know the actor already, you probably don't need to process their profile updates
wmurphyrd commented
A contribution for this change would be welcome. Or, we're available for hire if you prefer: consulting@immers.space
transferred to the underlying library where this would apply
wmurphyrd commented
The relevant code is here:
activitypub-express/net/security.js
Lines 44 to 73 in 364d907
ClearlyClaire commented
Thank you for solving this issue!