mirror of
https://code.naskya.net/repos/ndqEd
synced 2025-01-27 00:27:50 +09:00
a53fbcf1c0
Delivery of an activity into local inboxes is being done using custom local functions. Each C2S or S2S handler has its own specific variant for this. As part of the ongoing refactoring and evolution of the federation code, I implemented a general-purpose local delivery function: It takes a LocalRecipientSet and simply delivers to everyone, no handler-specific assumptions or limitations. To limit the recipient set according to handler specific rules, just filter/adapt/edit it before passing to the delivery function. The function isn't exported yet, but the existing 'deliverLocal' that delivers only to actors and to author's followers is now implemented via the new general-purpose function. I hope that's a step towards doing all the local delivery using this one function, simplifying the complicated federation code. |
||
---|---|---|
.. | ||
Auth | ||
Paginate | ||
Persist | ||
ActivityPub.hs | ||
FedURI.hs | ||
Hashids.hs | ||
MonadSite.hs | ||
RenderSource.hs | ||
SessionEntity.hs |