mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 20:44:34 +00:00
remove duplicate isBlocked check from generateBlockedHostQueryForNote
This commit is contained in:
parent
ac8fad2422
commit
a50a11fb4c
1 changed files with 1 additions and 2 deletions
|
@ -260,8 +260,7 @@ export class QueryService {
|
||||||
q.leftJoin(`note.${key}Instance`, `${key}Instance`);
|
q.leftJoin(`note.${key}Instance`, `${key}Instance`);
|
||||||
q.andWhere(new Brackets(qb => {
|
q.andWhere(new Brackets(qb => {
|
||||||
qb.orWhere(`note.${key}Id IS NULL`) // no corresponding user
|
qb.orWhere(`note.${key}Id IS NULL`) // no corresponding user
|
||||||
.orWhere(`note.${key}Host IS NULL`) // local
|
.orWhere(`note.${key}Host IS NULL`); // local
|
||||||
.orWhere(`${key}Instance.isBlocked = false`); // not blocked
|
|
||||||
|
|
||||||
if (allowSilenced) {
|
if (allowSilenced) {
|
||||||
qb.orWhere(`${key}Instance.isBlocked = false`); // not blocked
|
qb.orWhere(`${key}Instance.isBlocked = false`); // not blocked
|
||||||
|
|
Loading…
Add table
Reference in a new issue