From b9dde7d96b28a8004a2698f465447f0f9b6b6dbb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 21 May 2019 10:59:29 +0200 Subject: Fix thumbnails in video blacklist list endpoint --- server/models/video/video-blacklist.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/models/video') 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 @@ import { AllowNull, BelongsTo, Column, CreatedAt, DataType, Default, ForeignKey, Is, Model, Table, UpdatedAt } from 'sequelize-typescript' import { getSortOnModel, SortType, throwIfNotValid } from '../utils' -import { VideoModel } from './video' +import { VideoModel, ScopeNames as VideoModelScopeNames } from './video' import { ScopeNames as VideoChannelScopeNames, VideoChannelModel } from './video-channel' import { isVideoBlacklistReasonValid, isVideoBlacklistTypeValid } from '../../helpers/custom-validators/video-blacklist' import { VideoBlacklist, VideoBlacklistType } from '../../../shared/models/videos' @@ -58,7 +58,7 @@ export class VideoBlacklistModel extends Model { order: getSortOnModel(sort.sortModel, sort.sortValue), include: [ { - model: VideoModel, + model: VideoModel.scope(VideoModelScopeNames.WITH_THUMBNAILS), required: true, include: [ { -- cgit v1.2.3