diff options
Diffstat (limited to 'server/lib/activitypub/process/process-follow.ts')
-rw-r--r-- | server/lib/activitypub/process/process-follow.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/lib/activitypub/process/process-follow.ts b/server/lib/activitypub/process/process-follow.ts index 248004226..320dc1138 100644 --- a/server/lib/activitypub/process/process-follow.ts +++ b/server/lib/activitypub/process/process-follow.ts | |||
@@ -49,6 +49,12 @@ async function follow (account: AccountInstance, targetAccountURL: string) { | |||
49 | }, | 49 | }, |
50 | transaction: t | 50 | transaction: t |
51 | }) | 51 | }) |
52 | |||
53 | if (accountFollow.state !== 'accepted') { | ||
54 | accountFollow.state = 'accepted' | ||
55 | await accountFollow.save({ transaction: t }) | ||
56 | } | ||
57 | |||
52 | accountFollow.AccountFollower = account | 58 | accountFollow.AccountFollower = account |
53 | accountFollow.AccountFollowing = targetAccount | 59 | accountFollow.AccountFollowing = targetAccount |
54 | 60 | ||