From b6a4fd6b099b3363ac59c06cfd81b54e1356d8bc Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 16 Feb 2018 11:19:54 +0100 Subject: Fix avatars on video watch page --- server/models/video/video.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'server/models') diff --git a/server/models/video/video.ts b/server/models/video/video.ts index d748e81bd..aa1878caa 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -68,6 +68,7 @@ import { sendDeleteVideo } from '../../lib/activitypub/send' import { AccountModel } from '../account/account' import { AccountVideoRateModel } from '../account/account-video-rate' import { ActorModel } from '../activitypub/actor' +import { AvatarModel } from '../avatar/avatar' import { ServerModel } from '../server/server' import { getSort, throwIfNotValid } from '../utils' import { TagModel } from './tag' @@ -175,6 +176,10 @@ enum ScopeNames { attributes: [ 'host' ], model: () => ServerModel.unscoped(), required: false + }, + { + model: () => AvatarModel.unscoped(), + required: false } ] } -- cgit v1.2.3