aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-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,