From 32b2b43c06621e384c0bd1610ef0bb9f23399be7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 12 Jan 2018 11:47:45 +0100 Subject: Update follower/following counts --- server/lib/activitypub/process/process-follow.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/lib/activitypub/process/process-follow.ts') diff --git a/server/lib/activitypub/process/process-follow.ts b/server/lib/activitypub/process/process-follow.ts index 5085c5da9..69f5c51b5 100644 --- a/server/lib/activitypub/process/process-follow.ts +++ b/server/lib/activitypub/process/process-follow.ts @@ -51,6 +51,9 @@ async function follow (actor: ActorModel, targetActorURL: string) { transaction: t }) + actorFollow.ActorFollower = actor + actorFollow.ActorFollowing = targetActor + if (actorFollow.state !== 'accepted') { actorFollow.state = 'accepted' await actorFollow.save({ transaction: t }) -- cgit v1.2.3