aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-12 10:54:56 +0200
committerChocobozzz <me@florianbigard.com>2020-06-12 16:27:41 +0200
commite74bda21d15300b4653392957e730c5e4eff2af3 (patch)
treee8b9358eff646c635c42c7da0853dbfc1454827d /server/lib
parent0283fe98b8d8f03aa60552fd3d42ec5817599f78 (diff)
downloadPeerTube-e74bda21d15300b4653392957e730c5e4eff2af3.tar.gz
PeerTube-e74bda21d15300b4653392957e730c5e4eff2af3.tar.zst
PeerTube-e74bda21d15300b4653392957e730c5e4eff2af3.zip
Speed up videos indexation
And fetch video attributes after
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/activitypub/process/process-create.ts3
1 files changed, 2 insertions, 1 deletions
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 {
54async function processCreateVideo (activity: ActivityCreate, notify: boolean) { 54async function processCreateVideo (activity: ActivityCreate, notify: boolean) {
55 const videoToCreateData = activity.object as VideoTorrentObject 55 const videoToCreateData = activity.object as VideoTorrentObject
56 56
57 const { video, created } = await getOrCreateVideoAndAccountAndChannel({ videoObject: videoToCreateData }) 57 const syncParam = { likes: false, dislikes: false, shares: false, comments: false, thumbnail: true, refreshVideo: false }
58 const { video, created } = await getOrCreateVideoAndAccountAndChannel({ videoObject: videoToCreateData, syncParam })
58 59
59 if (created && notify) Notifier.Instance.notifyOnNewVideoIfNeeded(video) 60 if (created && notify) Notifier.Instance.notifyOnNewVideoIfNeeded(video)
60 61