diff options
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/job-queue/handlers/activitypub-http-broadcast.ts | 2 | ||||
-rw-r--r-- | server/lib/job-queue/handlers/activitypub-http-unicast.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/job-queue/handlers/activitypub-http-broadcast.ts b/server/lib/job-queue/handlers/activitypub-http-broadcast.ts index 159856cda..78878fc01 100644 --- a/server/lib/job-queue/handlers/activitypub-http-broadcast.ts +++ b/server/lib/job-queue/handlers/activitypub-http-broadcast.ts | |||
@@ -39,7 +39,7 @@ async function processActivityPubHttpBroadcast (job: kue.Job) { | |||
39 | } | 39 | } |
40 | } | 40 | } |
41 | 41 | ||
42 | return ActorFollowModel.updateActorFollowsScoreAndRemoveBadOnes(goodUrls, badUrls, undefined) | 42 | return ActorFollowModel.updateActorFollowsScore(goodUrls, badUrls, undefined) |
43 | } | 43 | } |
44 | 44 | ||
45 | // --------------------------------------------------------------------------- | 45 | // --------------------------------------------------------------------------- |
diff --git a/server/lib/job-queue/handlers/activitypub-http-unicast.ts b/server/lib/job-queue/handlers/activitypub-http-unicast.ts index 9b4188c50..e1e1824e5 100644 --- a/server/lib/job-queue/handlers/activitypub-http-unicast.ts +++ b/server/lib/job-queue/handlers/activitypub-http-unicast.ts | |||
@@ -28,9 +28,9 @@ async function processActivityPubHttpUnicast (job: kue.Job) { | |||
28 | 28 | ||
29 | try { | 29 | try { |
30 | await doRequest(options) | 30 | await doRequest(options) |
31 | ActorFollowModel.updateActorFollowsScoreAndRemoveBadOnes([ uri ], [], undefined) | 31 | ActorFollowModel.updateActorFollowsScore([ uri ], [], undefined) |
32 | } catch (err) { | 32 | } catch (err) { |
33 | ActorFollowModel.updateActorFollowsScoreAndRemoveBadOnes([], [ uri ], undefined) | 33 | ActorFollowModel.updateActorFollowsScore([], [ uri ], undefined) |
34 | 34 | ||
35 | throw err | 35 | throw err |
36 | } | 36 | } |