mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 03:03:09 +02:00
fix: replies showing if not set to show replies
This commit is contained in:
parent
579a13899c
commit
4da9d94a16
1 changed files with 1 additions and 0 deletions
|
@ -124,6 +124,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ps.withFiles && note.fileIds.length === 0) return false;
|
if (ps.withFiles && note.fileIds.length === 0) return false;
|
||||||
|
if (!ps.withReplies && note.replyId) return false;
|
||||||
|
|
||||||
if (note.channel?.isSensitive && !isSelf) return false;
|
if (note.channel?.isSensitive && !isSelf) return false;
|
||||||
if (note.visibility === 'specified' && (!me || (me.id !== note.userId && !note.visibleUserIds.some(v => v === me.id)))) return false;
|
if (note.visibility === 'specified' && (!me || (me.id !== note.userId && !note.visibleUserIds.some(v => v === me.id)))) return false;
|
||||||
|
|
Loading…
Reference in a new issue