Skip to content
Snippets Groups Projects
Unverified Commit 4da9d94a authored by Mar0xy's avatar Mar0xy
Browse files

fix: replies showing if not set to show replies

parent 579a1389
No related branches found
No related tags found
No related merge requests found
......@@ -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.withReplies && note.replyId) 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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment