mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Optimize SQL requests of videos AP endpoints
This commit is contained in:
parent
ad76628b17
commit
96f29c0f6d
7 changed files with 56 additions and 44 deletions
|
@ -61,7 +61,7 @@ function fetchRemoteVideoStaticFile (video: VideoModel, path: string, reject: Fu
|
|||
|
||||
async function fetchRemoteVideoDescription (video: VideoModel) {
|
||||
const host = video.VideoChannel.Account.Actor.Server.host
|
||||
const path = video.getDescriptionPath()
|
||||
const path = video.getDescriptionAPIPath()
|
||||
const options = {
|
||||
uri: REMOTE_SCHEME.HTTP + '://' + host + path,
|
||||
json: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue