diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-24 15:00:10 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:53 +0100 |
commit | df1966c9b48fd3cb3e0ec227bac97065d0122d78 (patch) | |
tree | f871765ae33f03c5ad803c34782294b7d6f97c7c /server/lib | |
parent | 652b30564c41b6ad1a42568a5792cb58d00cd10d (diff) | |
download | PeerTube-df1966c9b48fd3cb3e0ec227bac97065d0122d78.tar.gz PeerTube-df1966c9b48fd3cb3e0ec227bac97065d0122d78.tar.zst PeerTube-df1966c9b48fd3cb3e0ec227bac97065d0122d78.zip |
Fix lint
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/activitypub/send/misc.ts | 4 | ||||
-rw-r--r-- | server/lib/jobs/activitypub-http-job-scheduler/activitypub-http-job-scheduler.ts | 2 |
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 | ||