fix visibility regressions and merge typos

This commit is contained in:
dakkar 2025-06-10 15:13:53 +01:00
parent aba4b537ad
commit d222fafc1b
2 changed files with 13 additions and 12 deletions

View file

@ -168,8 +168,10 @@ export class QueryService {
.orWhere(':meId = note.replyUserId')
// DM to me
.orWhere(':meIdAsList <@ note.visibleUserIds')
// Mentions me
.orWhere(':meIdAsList <@ note.mentions')
// Mentions me (and not a direct message)
.orWhere(new Brackets(qb =>
qb.andWhere(':meIdAsList <@ note.mentions')
.andWhere('note.visibility != \'specified\'')))
// Followers-only post
.orWhere(new Brackets(qb => this
.andFollowingUser(qb, ':meId', 'note.userId')