mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 20:44:34 +00:00
do not make a DM visible if user is mentioned but not a recipient
This commit is contained in:
parent
187c98e5ac
commit
21eff6df66
1 changed files with 2 additions and 2 deletions
|
@ -213,7 +213,6 @@ export class QueryService {
|
|||
.orWhere('note.userId = :meId')
|
||||
// または 自分宛て
|
||||
.orWhere(':meIdAsList <@ note.visibleUserIds')
|
||||
.orWhere(':meIdAsList <@ note.mentions')
|
||||
.orWhere(new Brackets(qb => {
|
||||
qb
|
||||
// または フォロワー宛ての投稿であり、
|
||||
|
@ -223,7 +222,8 @@ export class QueryService {
|
|||
// 自分がフォロワーである
|
||||
.where(`note.userId IN (${ followingQuery.getQuery() })`)
|
||||
// または 自分の投稿へのリプライ
|
||||
.orWhere('note.replyUserId = :meId');
|
||||
.orWhere('note.replyUserId = :meId')
|
||||
.orWhere(':meIdAsList <@ note.mentions');
|
||||
}));
|
||||
}));
|
||||
}));
|
||||
|
|
Loading…
Add table
Reference in a new issue