mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 21:37:34 -07:00
parent
710d33b658
commit
434883be1e
6 changed files with 6 additions and 6 deletions
|
@ -66,7 +66,7 @@ export default define(meta, async (ps, user) => {
|
|||
}))
|
||||
.leftJoinAndSelect('note.user', 'user');
|
||||
|
||||
if (user) generateVisibilityQuery(query, user);
|
||||
generateVisibilityQuery(query, user);
|
||||
if (user) generateMuteQuery(query, user);
|
||||
|
||||
const notes = await query.take(ps.limit!).getMany();
|
||||
|
|
|
@ -95,7 +95,7 @@ export default define(meta, async (ps, user) => {
|
|||
.andWhere('(note.visibility = \'public\') AND (note.userHost IS NULL)')
|
||||
.leftJoinAndSelect('note.user', 'user');
|
||||
|
||||
if (user) generateVisibilityQuery(query, user);
|
||||
generateVisibilityQuery(query, user);
|
||||
if (user) generateMuteQuery(query, user);
|
||||
|
||||
if (ps.withFiles) {
|
||||
|
|
|
@ -70,7 +70,7 @@ export default define(meta, async (ps, user) => {
|
|||
.andWhere(`note.renoteId = :renoteId`, { renoteId: note.id })
|
||||
.leftJoinAndSelect('note.user', 'user');
|
||||
|
||||
if (user) generateVisibilityQuery(query, user);
|
||||
generateVisibilityQuery(query, user);
|
||||
if (user) generateMuteQuery(query, user);
|
||||
|
||||
const renotes = await query.take(ps.limit!).getMany();
|
||||
|
|
|
@ -61,7 +61,7 @@ export default define(meta, async (ps, user) => {
|
|||
.andWhere('note.replyId = :replyId', { replyId: ps.noteId })
|
||||
.leftJoinAndSelect('note.user', 'user');
|
||||
|
||||
if (user) generateVisibilityQuery(query, user);
|
||||
generateVisibilityQuery(query, user);
|
||||
if (user) generateMuteQuery(query, user);
|
||||
|
||||
const timeline = await query.take(ps.limit!).getMany();
|
||||
|
|
|
@ -95,7 +95,7 @@ export default define(meta, async (ps, me) => {
|
|||
const query = makePaginationQuery(Notes.createQueryBuilder('note'), ps.sinceId, ps.untilId)
|
||||
.leftJoinAndSelect('note.user', 'user');
|
||||
|
||||
if (me) generateVisibilityQuery(query, me);
|
||||
generateVisibilityQuery(query, me);
|
||||
if (me) generateMuteQuery(query, me);
|
||||
|
||||
if (ps.tag) {
|
||||
|
|
|
@ -133,7 +133,7 @@ export default define(meta, async (ps, me) => {
|
|||
.andWhere('note.userId = :userId', { userId: user.id })
|
||||
.leftJoinAndSelect('note.user', 'user');
|
||||
|
||||
if (me) generateVisibilityQuery(query, me);
|
||||
generateVisibilityQuery(query, me);
|
||||
if (me) generateMuteQuery(query, me, user);
|
||||
|
||||
if (ps.withFiles) {
|
||||
|
|
Loading…
Reference in a new issue