X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo%2Fvideo.ts;h=8f561116be70622f49eb898c1e6af7968d16dfd9;hb=1c5e49e75284100b7b1fc8b4e73c8ba53fe22e89;hp=749ef7197105bcb059bae197a8d9635e5ae6b00c;hpb=20213fbd2a366dffc35aa7dddad71323893f8d62;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 749ef7197..8f561116b 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -1004,18 +1004,19 @@ export class VideoModel extends Model>> { }) } - static async listPublishedLiveIds () { + static async listPublishedLiveUUIDs () { const options = { - attributes: [ 'id' ], + attributes: [ 'uuid' ], where: { isLive: true, + remote: false, state: VideoState.PUBLISHED } } const result = await VideoModel.findAll(options) - return result.map(v => v.id) + return result.map(v => v.uuid) } static listUserVideosForApi (options: { @@ -1919,7 +1920,7 @@ export class VideoModel extends Model>> { } getWatchStaticPath () { - return '/videos/watch/' + this.uuid + return '/w/' + this.uuid } getEmbedStaticPath () {