mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-25 08:15:12 +00:00
merge: fix file sorting on user notes (#122)
This commit is contained in:
commit
c491385f2e
1 changed files with 2 additions and 0 deletions
|
@ -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.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;
|
||||||
if (note.visibility === 'followers' && !isFollowing && !isSelf) return false;
|
if (note.visibility === 'followers' && !isFollowing && !isSelf) return false;
|
||||||
|
|
Loading…
Reference in a new issue