add missing condition in QueryService.generateSilencedUserQueryForNotes

This commit is contained in:
Hazelnoot 2025-08-13 11:55:07 -04:00
parent 96ee635765
commit c9fbe58715

View file

@ -276,6 +276,11 @@ export class QueryService {
// case 4: we are following the user
this.orFollowingUser(qb, ':meId', `note.${key}Id`);
}
// case 5: user is the same
if (key !== 'user') {
qb.orWhere(`note.${key}Id = note.userId`);
}
}));
};