diff options
Diffstat (limited to 'server/lib/activitypub/send/send-follow.ts')
-rw-r--r-- | server/lib/activitypub/send/send-follow.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/lib/activitypub/send/send-follow.ts b/server/lib/activitypub/send/send-follow.ts index aeeb50a2a..57501dadb 100644 --- a/server/lib/activitypub/send/send-follow.ts +++ b/server/lib/activitypub/send/send-follow.ts | |||
@@ -15,7 +15,9 @@ function sendFollow (actorFollow: MActorFollowActors, t: Transaction) { | |||
15 | 15 | ||
16 | const data = buildFollowActivity(actorFollow.url, me, following) | 16 | const data = buildFollowActivity(actorFollow.url, me, following) |
17 | 17 | ||
18 | t.afterCommit(() => unicastTo(data, me, following.inboxUrl)) | 18 | return t.afterCommit(() => { |
19 | return unicastTo({ data, byActor: me, toActorUrl: following.inboxUrl, contextType: 'Follow' }) | ||
20 | }) | ||
19 | } | 21 | } |
20 | 22 | ||
21 | function buildFollowActivity (url: string, byActor: MActor, targetActor: MActor): ActivityFollow { | 23 | function buildFollowActivity (url: string, byActor: MActor, targetActor: MActor): ActivityFollow { |