Speed up videos indexation
And fetch video attributes after
This commit is contained in:
parent
0283fe98b8
commit
e74bda21d1
1 changed files with 2 additions and 1 deletions
|
@ -54,7 +54,8 @@ export {
|
||||||
async function processCreateVideo (activity: ActivityCreate, notify: boolean) {
|
async function processCreateVideo (activity: ActivityCreate, notify: boolean) {
|
||||||
const videoToCreateData = activity.object as VideoTorrentObject
|
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)
|
if (created && notify) Notifier.Instance.notifyOnNewVideoIfNeeded(video)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue