]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Prevent notification from pending subscriptions
authorChocobozzz <me@florianbigard.com>
Wed, 17 May 2023 13:02:23 +0000 (15:02 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 17 May 2023 13:02:23 +0000 (15:02 +0200)
server/models/user/user.ts

index b6b120c92a0b069511bb927c9da670c9aa54ca9e..735b5c17177b9b86d00b74833efd0cf1c599a30d 100644 (file)
@@ -550,6 +550,7 @@ export class UserModel extends Model<Partial<AttributesOnly<UserModel>>> {
                   model: ActorFollowModel.unscoped(),
                   required: true,
                   where: {
+                    state: 'accepted',
                     targetActorId: actorId
                   }
                 }