From e74bda21d15300b4653392957e730c5e4eff2af3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 12 Jun 2020 10:54:56 +0200 Subject: [PATCH] Speed up videos indexation And fetch video attributes after --- server/lib/activitypub/process/process-create.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/lib/activitypub/process/process-create.ts b/server/lib/activitypub/process/process-create.ts index f8f9b80c6..5e737f49e 100644 --- a/server/lib/activitypub/process/process-create.ts +++ b/server/lib/activitypub/process/process-create.ts @@ -54,7 +54,8 @@ export { async function processCreateVideo (activity: ActivityCreate, notify: boolean) { const videoToCreateData = activity.object as VideoTorrentObject - const { video, created } = await getOrCreateVideoAndAccountAndChannel({ videoObject: videoToCreateData }) + const syncParam = { likes: false, dislikes: false, shares: false, comments: false, thumbnail: true, refreshVideo: false } + const { video, created } = await getOrCreateVideoAndAccountAndChannel({ videoObject: videoToCreateData, syncParam }) if (created && notify) Notifier.Instance.notifyOnNewVideoIfNeeded(video) -- 2.25.1