diff options
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/server/follows.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/controllers/api/server/follows.ts b/server/controllers/api/server/follows.ts index c759824e0..4b54afc8d 100644 --- a/server/controllers/api/server/follows.ts +++ b/server/controllers/api/server/follows.ts | |||
@@ -19,6 +19,7 @@ import { sendUndoFollow } from '../../../lib/activitypub/send/send-undo' | |||
19 | import { AccountInstance } from '../../../models/account/account-interface' | 19 | import { AccountInstance } from '../../../models/account/account-interface' |
20 | import { retryTransactionWrapper } from '../../../helpers/database-utils' | 20 | import { retryTransactionWrapper } from '../../../helpers/database-utils' |
21 | import { saveAccountAndServerIfNotExist } from '../../../lib/activitypub/account' | 21 | import { saveAccountAndServerIfNotExist } from '../../../lib/activitypub/account' |
22 | import { addFetchOutboxJob } from '../../../lib/activitypub/fetch' | ||
22 | 23 | ||
23 | const serverFollowsRouter = express.Router() | 24 | const serverFollowsRouter = express.Router() |
24 | 25 | ||
@@ -136,6 +137,8 @@ async function follow (fromAccount: AccountInstance, targetAccount: AccountInsta | |||
136 | if (accountFollow.state === 'pending') { | 137 | if (accountFollow.state === 'pending') { |
137 | await sendFollow(accountFollow, t) | 138 | await sendFollow(accountFollow, t) |
138 | } | 139 | } |
140 | |||
141 | await addFetchOutboxJob(targetAccount, t) | ||
139 | }) | 142 | }) |
140 | } catch (err) { | 143 | } catch (err) { |
141 | // Reset target account | 144 | // Reset target account |