1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Don't refresh videos when processing views

It allows us to use a cache
This commit is contained in:
Chocobozzz 2020-02-04 15:45:41 +01:00
parent 7eba5e1fa8
commit 943e519390
No known key found for this signature in database
GPG key ID: 583A612D890159BE
9 changed files with 95 additions and 34 deletions

View file

@ -23,7 +23,8 @@ async function processCreateView (activity: ActivityView | ActivityCreate, byAct
const options = {
videoObject,
fetchType: 'only-video' as 'only-video'
fetchType: 'only-immutable-attributes' as 'only-immutable-attributes',
allowRefresh: false as false
}
const { video } = await getOrCreateVideoAndAccountAndChannel(options)