From c655c9ef6f7ddb47a153adc04d5c10c6de3d5ed7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 6 Nov 2020 16:43:43 +0100 Subject: Update ffmpeg static version for tests --- server/lib/activitypub/process/process-view.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'server/lib/activitypub/process/process-view.ts') diff --git a/server/lib/activitypub/process/process-view.ts b/server/lib/activitypub/process/process-view.ts index efceb21a2..84697673b 100644 --- a/server/lib/activitypub/process/process-view.ts +++ b/server/lib/activitypub/process/process-view.ts @@ -31,6 +31,10 @@ async function processCreateView (activity: ActivityView | ActivityCreate, byAct } const { video } = await getOrCreateVideoAndAccountAndChannel(options) + if (!video.isLive) { + await Redis.Instance.addVideoView(video.id) + } + if (video.isOwned()) { // Our live manager will increment the counter and send the view to followers if (video.isLive) { @@ -38,8 +42,6 @@ async function processCreateView (activity: ActivityView | ActivityCreate, byAct return } - await Redis.Instance.addVideoView(video.id) - // Forward the view but don't resend the activity to the sender const exceptions = [ byActor ] await forwardVideoRelatedActivity(activity, undefined, exceptions, video) -- cgit v1.2.3