aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/activitypub
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-09 17:22:26 +0100
committerChocobozzz <me@florianbigard.com>2018-01-09 17:22:26 +0100
commitca309a9f6492f340295fee010ffa6dcc63fd76b4 (patch)
treecece9d0a20b4ebec3818cc219827209fd261021b /server/models/activitypub
parent234b535dacdeacfacd7ac5601e53b6b7d923ca00 (diff)
downloadPeerTube-ca309a9f6492f340295fee010ffa6dcc63fd76b4.tar.gz
PeerTube-ca309a9f6492f340295fee010ffa6dcc63fd76b4.tar.zst
PeerTube-ca309a9f6492f340295fee010ffa6dcc63fd76b4.zip
Fix aot build
Diffstat (limited to 'server/models/activitypub')
-rw-r--r--server/models/activitypub/actor-follow.ts11
1 files changed, 9 insertions, 2 deletions
diff --git a/server/models/activitypub/actor-follow.ts b/server/models/activitypub/actor-follow.ts
index 4cba05e95..c35c712ed 100644
--- a/server/models/activitypub/actor-follow.ts
+++ b/server/models/activitypub/actor-follow.ts
@@ -190,14 +190,21 @@ export class ActorFollowModel extends Model<ActorFollowModel> {
190 } 190 }
191 191
192 static listAcceptedFollowerSharedInboxUrls (actorIds: number[], t: Sequelize.Transaction) { 192 static listAcceptedFollowerSharedInboxUrls (actorIds: number[], t: Sequelize.Transaction) {
193 return ActorFollowModel.createListAcceptedFollowForApiQuery('followers', actorIds, t, undefined, undefined, 'sharedInboxUrl') 193 return ActorFollowModel.createListAcceptedFollowForApiQuery(
194 'DISTINCT(followers)',
195 actorIds,
196 t,
197 undefined,
198 undefined,
199 'sharedInboxUrl'
200 )
194 } 201 }
195 202
196 static listAcceptedFollowingUrlsForApi (actorIds: number[], t: Sequelize.Transaction, start?: number, count?: number) { 203 static listAcceptedFollowingUrlsForApi (actorIds: number[], t: Sequelize.Transaction, start?: number, count?: number) {
197 return ActorFollowModel.createListAcceptedFollowForApiQuery('following', actorIds, t, start, count) 204 return ActorFollowModel.createListAcceptedFollowForApiQuery('following', actorIds, t, start, count)
198 } 205 }
199 206
200 private static async createListAcceptedFollowForApiQuery (type: 'followers' | 'following', 207 private static async createListAcceptedFollowForApiQuery (type: 'followers' | 'following' | 'DISTINCT(followers)',
201 actorIds: number[], 208 actorIds: number[],
202 t: Sequelize.Transaction, 209 t: Sequelize.Transaction,
203 start?: number, 210 start?: number,