diff options
Diffstat (limited to 'server/models/actor/actor.ts')
-rw-r--r-- | server/models/actor/actor.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/actor/actor.ts b/server/models/actor/actor.ts index 943b7364f..7be5a140c 100644 --- a/server/models/actor/actor.ts +++ b/server/models/actor/actor.ts | |||
@@ -462,7 +462,7 @@ export class ActorModel extends Model<Partial<AttributesOnly<ActorModel>>> { | |||
462 | } | 462 | } |
463 | 463 | ||
464 | return ActorModel.update({ | 464 | return ActorModel.update({ |
465 | [columnToUpdate]: literal(`(SELECT COUNT(*) FROM "actorFollow" WHERE "${columnOfCount}" = ${sanitizedOfId})`) | 465 | [columnToUpdate]: literal(`(SELECT COUNT(*) FROM "actorFollow" WHERE "${columnOfCount}" = ${sanitizedOfId} AND "state" = 'accepted')`) |
466 | }, { where, transaction }) | 466 | }, { where, transaction }) |
467 | } | 467 | } |
468 | 468 | ||