aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/activitypub/actor-follow.ts9
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'
29import { ActorModel } from './actor' 29import { ActorModel } from './actor'
30import { VideoChannelModel } from '../video/video-channel' 30import { VideoChannelModel } from '../video/video-channel'
31import { IIncludeOptions } from '../../../node_modules/sequelize-typescript/lib/interfaces/IIncludeOptions' 31import { IIncludeOptions } from '../../../node_modules/sequelize-typescript/lib/interfaces/IIncludeOptions'
32import { 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 }