mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-24 09:49:05 +01:00
[backend] Only allow author to see hidden posts
This commit is contained in:
parent
f14c5ed4ef
commit
1378037384
@ -57,6 +57,12 @@ export function generateVisibilityQuery(
|
|||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
q.andWhere(new Brackets((qb) => {
|
||||||
|
qb.where(`note.visibility != 'hidden'`).orWhere(
|
||||||
|
`note.userId = :meId`,
|
||||||
|
);
|
||||||
|
}));
|
||||||
|
|
||||||
q.setParameters({ meId: me.id });
|
q.setParameters({ meId: me.id });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user