Skip to content
Snippets Groups Projects
Unverified Commit c491385f authored by Marie's avatar Marie Committed by GitHub
Browse files

merge: fix file sorting on user notes (#122)

parents 9de6e0ac 044d3d76
No related branches found
No related tags found
No related merge requests found
......@@ -123,6 +123,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
}
}
if (ps.withFiles && note.fileIds.length === 0) 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 === 'followers' && !isFollowing && !isSelf) 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