add missing condition in QueryService.generateSilencedUserQueryForNotes
This commit is contained in:
parent
96ee635765
commit
c9fbe58715
1 changed files with 5 additions and 0 deletions
|
|
@ -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`);
|
||||
}
|
||||
}));
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue