From 10a105f0c8620b2742eb357b69dd516a9ddf5798 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 4 Sep 2019 11:39:25 +0200 Subject: Add notification on auto follow index --- server/models/activitypub/actor-follow.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/models') diff --git a/server/models/activitypub/actor-follow.ts b/server/models/activitypub/actor-follow.ts index 0833b9a93..8498692f0 100644 --- a/server/models/activitypub/actor-follow.ts +++ b/server/models/activitypub/actor-follow.ts @@ -439,13 +439,13 @@ export class ActorFollowModel extends Model { const followerId = (await getServerActor()).id const query = { - attributes: [], + attributes: [ 'id' ], where: { actorId: followerId }, include: [ { - attributes: [ ], + attributes: [ 'id' ], model: ActorModel.unscoped(), required: true, as: 'ActorFollowing', @@ -469,7 +469,7 @@ export class ActorFollowModel extends Model { } const res = await ActorFollowModel.findAll(query) - const followedHosts = res.map(res => res.ActorFollowing.Server.host) + const followedHosts = res.map(row => row.ActorFollowing.Server.host) return difference(hosts, followedHosts) } -- cgit v1.2.3