mirror of
https://code.naskya.net/repos/ndqEd
synced 2025-03-20 15:14:54 +09:00
Switch to converged handlers than handle both local and remote activities
I was writing a topicLocalInvite handler when I realized how cumbersome it's becoming, to have separate handlers for local activities. While it allows me to pick custom specific message names and parameters (which is why I took that approach in the first place), it causes a lot of duplication and complexity (because I have to write the remote-activity handlers anyway; adding local ones doesn't reduce complexity). So this commit switches the entire system to communicate only using AP/FF activities, including between local actors.
This commit is contained in:
parent
d5d6b0af61
commit
d33f272ede
26 changed files with 871 additions and 760 deletions
th
13
th/models
13
th/models
|
@ -228,11 +228,14 @@ FollowRemote
|
|||
UniqueFollowRemoteFollow follow
|
||||
UniqueFollowRemoteAccept accept
|
||||
|
||||
--FollowRequest
|
||||
-- person PersonId
|
||||
-- target FollowerSetId
|
||||
--
|
||||
-- UniqueFollowRequest person target
|
||||
FollowRequest
|
||||
actor ActorId
|
||||
target FollowerSetId
|
||||
public Bool
|
||||
follow OutboxItemId
|
||||
|
||||
UniqueFollowRequest actor target
|
||||
UniqueFollowRequestFollow follow
|
||||
|
||||
Follow
|
||||
actor ActorId
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue