Always prefer shared inbox #881
No reviewers
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 change/feedback
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#881
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "Oneric/akkoma:shared-inbox"
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?
The comments regarding spec requirements don't quite match the actual logic and in practice it’s fine to unconditionally prefer sharedInbox. All other surveyed implementations also unconditionally prefer shared inboxes by default.
In fact, delivery to multiple personal inboxes is bound to fail and an utter waste of resources. After the first received document was processed by the remote server, all further copies will just fail to be actually accepted into the database since the AP ID is already known.
This can greatly reduce the amount of deliveries for follower-only posts (and to a lesser degree DMs).
Messages with
bcc
addressing are not affected by this for now(and it’s marked as WIP because i just noticed they’re handled in a different function and thus need to update the commit message)For reference: there was also some discussion about his on IRC.
Force-pushed with cosmetic changes for elixir-1.18
mix format
c15dd623d5
to9495a61f00
WIP: Always prefer shared inboxto Always prefer shared inbox9495a61f00
toa80444041c
Seems to work on akko.wtf, though I haven't noticed a significant decrease in PublisherWorker events.
oh so that's why sometimes you get the "AP already used in the DB" error hmmm
duplicates being delivered appears to be the most common source ime; #886 avoids that and it seem less common for me now.
But it’s also possible to run into this when e.g. a Like and the liked post itself are both delivered near simultaneously, or a like and boost of the same post. The like/annonuce activities will end up dereferncing and trying to insert the object they act on, putting them into a race condition