diff options
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video-playlist.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/models/video/video-playlist.ts b/server/models/video/video-playlist.ts index aa42687cd..7dbe4ce8d 100644 --- a/server/models/video/video-playlist.ts +++ b/server/models/video/video-playlist.ts | |||
@@ -301,13 +301,14 @@ export class VideoPlaylistModel extends Model<VideoPlaylistModel> { | |||
301 | }) | 301 | }) |
302 | } | 302 | } |
303 | 303 | ||
304 | static listUrlsOfForAP (accountId: number, start: number, count: number) { | 304 | static listPublicUrlsOfForAP (accountId: number, start: number, count: number) { |
305 | const query = { | 305 | const query = { |
306 | attributes: [ 'url' ], | 306 | attributes: [ 'url' ], |
307 | offset: start, | 307 | offset: start, |
308 | limit: count, | 308 | limit: count, |
309 | where: { | 309 | where: { |
310 | ownerAccountId: accountId | 310 | ownerAccountId: accountId, |
311 | privacy: VideoPlaylistPrivacy.PUBLIC | ||
311 | } | 312 | } |
312 | } | 313 | } |
313 | 314 | ||