fix: replies showing if not set to show replies

This commit is contained in:
Mar0xy 2023-11-03 00:12:54 +01:00
parent 579a13899c
commit 4da9d94a16
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828
1 changed files with 1 additions and 0 deletions

View File

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