aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-05-21 10:59:29 +0200
committerChocobozzz <me@florianbigard.com>2019-05-21 10:59:29 +0200
commitb9dde7d96b28a8004a2698f465447f0f9b6b6dbb (patch)
tree27b6f24c7ab65d6169906fcb66a8bd73bc70766d /server/models
parent8c6781e95641fcb3d4a747ba4a37ef8efb1ad1bc (diff)
downloadPeerTube-b9dde7d96b28a8004a2698f465447f0f9b6b6dbb.tar.gz
PeerTube-b9dde7d96b28a8004a2698f465447f0f9b6b6dbb.tar.zst
PeerTube-b9dde7d96b28a8004a2698f465447f0f9b6b6dbb.zip
Fix thumbnails in video blacklist list endpoint
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video/video-blacklist.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video-blacklist.ts b/server/models/video/video-blacklist.ts
index d9fe9dfc9..3bd74460d 100644
--- a/server/models/video/video-blacklist.ts
+++ b/server/models/video/video-blacklist.ts
@@ -1,6 +1,6 @@
1import { AllowNull, BelongsTo, Column, CreatedAt, DataType, Default, ForeignKey, Is, Model, Table, UpdatedAt } from 'sequelize-typescript' 1import { AllowNull, BelongsTo, Column, CreatedAt, DataType, Default, ForeignKey, Is, Model, Table, UpdatedAt } from 'sequelize-typescript'
2import { getSortOnModel, SortType, throwIfNotValid } from '../utils' 2import { getSortOnModel, SortType, throwIfNotValid } from '../utils'
3import { VideoModel } from './video' 3import { VideoModel, ScopeNames as VideoModelScopeNames } from './video'
4import { ScopeNames as VideoChannelScopeNames, VideoChannelModel } from './video-channel' 4import { ScopeNames as VideoChannelScopeNames, VideoChannelModel } from './video-channel'
5import { isVideoBlacklistReasonValid, isVideoBlacklistTypeValid } from '../../helpers/custom-validators/video-blacklist' 5import { isVideoBlacklistReasonValid, isVideoBlacklistTypeValid } from '../../helpers/custom-validators/video-blacklist'
6import { VideoBlacklist, VideoBlacklistType } from '../../../shared/models/videos' 6import { VideoBlacklist, VideoBlacklistType } from '../../../shared/models/videos'
@@ -58,7 +58,7 @@ export class VideoBlacklistModel extends Model<VideoBlacklistModel> {
58 order: getSortOnModel(sort.sortModel, sort.sortValue), 58 order: getSortOnModel(sort.sortModel, sort.sortValue),
59 include: [ 59 include: [
60 { 60 {
61 model: VideoModel, 61 model: VideoModel.scope(VideoModelScopeNames.WITH_THUMBNAILS),
62 required: true, 62 required: true,
63 include: [ 63 include: [
64 { 64 {