aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/send/send-update.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-30 17:02:40 +0200
committerChocobozzz <me@florianbigard.com>2018-07-30 17:02:40 +0200
commit8e0fd45e14993793c64e06682a4a05c29068d398 (patch)
tree4567d24150f1c633181095e755d3291c4b32cead /server/lib/activitypub/send/send-update.ts
parent43c4c63937b63ed1f41b17f4cc8fe652a6d010fc (diff)
downloadPeerTube-8e0fd45e14993793c64e06682a4a05c29068d398.tar.gz
PeerTube-8e0fd45e14993793c64e06682a4a05c29068d398.tar.zst
PeerTube-8e0fd45e14993793c64e06682a4a05c29068d398.zip
Add more info logging
Diffstat (limited to 'server/lib/activitypub/send/send-update.ts')
-rw-r--r--server/lib/activitypub/send/send-update.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/lib/activitypub/send/send-update.ts b/server/lib/activitypub/send/send-update.ts
index 2fd374ec6..17d4f185c 100644
--- a/server/lib/activitypub/send/send-update.ts
+++ b/server/lib/activitypub/send/send-update.ts
@@ -9,8 +9,11 @@ import { VideoShareModel } from '../../../models/video/video-share'
9import { getUpdateActivityPubUrl } from '../url' 9import { getUpdateActivityPubUrl } from '../url'
10import { broadcastToFollowers } from './utils' 10import { broadcastToFollowers } from './utils'
11import { audiencify, getAudience } from '../audience' 11import { audiencify, getAudience } from '../audience'
12import { logger } from '../../../helpers/logger'
12 13
13async function sendUpdateVideo (video: VideoModel, t: Transaction) { 14async function sendUpdateVideo (video: VideoModel, t: Transaction) {
15 logger.info('Creating job to update video %s.', video.url)
16
14 const byActor = video.VideoChannel.Account.Actor 17 const byActor = video.VideoChannel.Account.Actor
15 18
16 const url = getUpdateActivityPubUrl(video.url, video.updatedAt.toISOString()) 19 const url = getUpdateActivityPubUrl(video.url, video.updatedAt.toISOString())
@@ -28,6 +31,8 @@ async function sendUpdateVideo (video: VideoModel, t: Transaction) {
28async function sendUpdateActor (accountOrChannel: AccountModel | VideoChannelModel, t: Transaction) { 31async function sendUpdateActor (accountOrChannel: AccountModel | VideoChannelModel, t: Transaction) {
29 const byActor = accountOrChannel.Actor 32 const byActor = accountOrChannel.Actor
30 33
34 logger.info('Creating job to update actor %s.', byActor.url)
35
31 const url = getUpdateActivityPubUrl(byActor.url, byActor.updatedAt.toISOString()) 36 const url = getUpdateActivityPubUrl(byActor.url, byActor.updatedAt.toISOString())
32 const accountOrChannelObject = accountOrChannel.toActivityPubObject() 37 const accountOrChannelObject = accountOrChannel.toActivityPubObject()
33 const audience = getAudience(byActor) 38 const audience = getAudience(byActor)