This commit is contained in:
MeiMei 2019-12-12 00:49:30 +09:00 committed by syuilo
parent 2a9de356db
commit 1d234e10bd
6 changed files with 6 additions and 6 deletions

View file

@ -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();

View file

@ -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) {

View file

@ -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();

View file

@ -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();

View file

@ -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) {

View file

@ -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) {