diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-21 16:18:59 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-27 09:41:54 +0200 |
commit | 22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd (patch) | |
tree | 93c53e0619f966bd9ff1bb698c411277a9447a41 /server/models/activitypub | |
parent | 99492dbc0d87ef54d0dab7d8d44f8d0de5722bdd (diff) | |
download | PeerTube-22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd.tar.gz PeerTube-22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd.tar.zst PeerTube-22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd.zip |
Add local user subscriptions
Diffstat (limited to 'server/models/activitypub')
-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 | } |