diff options
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/activitypub/actor-follow.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/server/models/activitypub/actor-follow.ts b/server/models/activitypub/actor-follow.ts index 20d3aa5fc..b2d7ace66 100644 --- a/server/models/activitypub/actor-follow.ts +++ b/server/models/activitypub/actor-follow.ts | |||
@@ -29,6 +29,7 @@ import { getSort } from '../utils' | |||
29 | import { ActorModel } from './actor' | 29 | import { ActorModel } from './actor' |
30 | import { VideoChannelModel } from '../video/video-channel' | 30 | import { VideoChannelModel } from '../video/video-channel' |
31 | import { IIncludeOptions } from '../../../node_modules/sequelize-typescript/lib/interfaces/IIncludeOptions' | 31 | import { IIncludeOptions } from '../../../node_modules/sequelize-typescript/lib/interfaces/IIncludeOptions' |
32 | import { AccountModel } from '../account/account' | ||
32 | 33 | ||
33 | @Table({ | 34 | @Table({ |
34 | tableName: 'actorFollow', | 35 | tableName: 'actorFollow', |
@@ -262,7 +263,13 @@ export class ActorFollowModel extends Model<ActorFollowModel> { | |||
262 | include: [ | 263 | include: [ |
263 | { | 264 | { |
264 | model: VideoChannelModel, | 265 | model: VideoChannelModel, |
265 | required: true | 266 | required: true, |
267 | include: [ | ||
268 | { | ||
269 | model: AccountModel, | ||
270 | required: true | ||
271 | } | ||
272 | ] | ||
266 | } | 273 | } |
267 | ] | 274 | ] |
268 | } | 275 | } |