From: Chocobozzz Date: Tue, 21 May 2019 08:59:29 +0000 (+0200) Subject: Fix thumbnails in video blacklist list endpoint X-Git-Tag: v1.3.0-rc.2~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b9dde7d96b28a8004a2698f465447f0f9b6b6dbb;p=oweals%2Fpeertube.git Fix thumbnails in video blacklist list endpoint --- 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: [ {