aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/activitypub/send/misc.ts4
-rw-r--r--server/lib/jobs/activitypub-http-job-scheduler/activitypub-http-job-scheduler.ts2
2 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/activitypub/send/misc.ts b/server/lib/activitypub/send/misc.ts
index fe137464e..444c1cbd6 100644
--- a/server/lib/activitypub/send/misc.ts
+++ b/server/lib/activitypub/send/misc.ts
@@ -29,7 +29,7 @@ async function forwardActivity (
29 29
30 if (uris.length === 0) { 30 if (uris.length === 0) {
31 logger.info('0 followers for %s, no forwarding.', toAccountFollowers.map(a => a.id).join(', ')) 31 logger.info('0 followers for %s, no forwarding.', toAccountFollowers.map(a => a.id).join(', '))
32 return 32 return undefined
33 } 33 }
34 34
35 logger.debug('Creating forwarding job.', { uris }) 35 logger.debug('Creating forwarding job.', { uris })
@@ -52,7 +52,7 @@ async function broadcastToFollowers (
52 const uris = await computeFollowerUris(toAccountFollowers, followersException) 52 const uris = await computeFollowerUris(toAccountFollowers, followersException)
53 if (uris.length === 0) { 53 if (uris.length === 0) {
54 logger.info('0 followers for %s, no broadcasting.', toAccountFollowers.map(a => a.id).join(', ')) 54 logger.info('0 followers for %s, no broadcasting.', toAccountFollowers.map(a => a.id).join(', '))
55 return 55 return undefined
56 } 56 }
57 57
58 logger.debug('Creating broadcast job.', { uris }) 58 logger.debug('Creating broadcast job.', { uris })
diff --git a/server/lib/jobs/activitypub-http-job-scheduler/activitypub-http-job-scheduler.ts b/server/lib/jobs/activitypub-http-job-scheduler/activitypub-http-job-scheduler.ts
index f1fe774cc..fcc81eb16 100644
--- a/server/lib/jobs/activitypub-http-job-scheduler/activitypub-http-job-scheduler.ts
+++ b/server/lib/jobs/activitypub-http-job-scheduler/activitypub-http-job-scheduler.ts
@@ -50,7 +50,7 @@ async function computeBody (payload: ActivityPubHttpPayload) {
50 if (!accountSignature) throw new Error('Unknown signature account id.') 50 if (!accountSignature) throw new Error('Unknown signature account id.')
51 body = await buildSignedActivity(accountSignature, payload.body) 51 body = await buildSignedActivity(accountSignature, payload.body)
52 } 52 }
53 53
54 return body 54 return body
55} 55}
56 56