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:
parent
7eba5e1fa8
commit
943e519390
9 changed files with 95 additions and 34 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue