diff options
Diffstat (limited to 'server/lib/activitypub/process/process-update.ts')
-rw-r--r-- | server/lib/activitypub/process/process-update.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/server/lib/activitypub/process/process-update.ts b/server/lib/activitypub/process/process-update.ts index 935da5a54..0bceb370e 100644 --- a/server/lib/activitypub/process/process-update.ts +++ b/server/lib/activitypub/process/process-update.ts | |||
@@ -51,7 +51,15 @@ async function processUpdateVideo (actor: ActorModel, activity: ActivityUpdate) | |||
51 | const { video } = await getOrCreateVideoAndAccountAndChannel({ videoObject: videoObject.id }) | 51 | const { video } = await getOrCreateVideoAndAccountAndChannel({ videoObject: videoObject.id }) |
52 | const channelActor = await getOrCreateVideoChannelFromVideoObject(videoObject) | 52 | const channelActor = await getOrCreateVideoChannelFromVideoObject(videoObject) |
53 | 53 | ||
54 | return updateVideoFromAP(video, videoObject, actor.Account, channelActor.VideoChannel, activity.to) | 54 | const updateOptions = { |
55 | video, | ||
56 | videoObject, | ||
57 | account: actor.Account, | ||
58 | channel: channelActor.VideoChannel, | ||
59 | updateViews: true, | ||
60 | overrideTo: activity.to | ||
61 | } | ||
62 | return updateVideoFromAP(updateOptions) | ||
55 | } | 63 | } |
56 | 64 | ||
57 | async function processUpdateCacheFile (byActor: ActorModel, activity: ActivityUpdate) { | 65 | async function processUpdateCacheFile (byActor: ActorModel, activity: ActivityUpdate) { |