fix(backend): showing reply for own notes

This commit is contained in:
ZerglingGo 2024-03-27 16:20:08 +09:00 committed by 무라쿠모
parent 15990d584d
commit 3f58ca2bda
Signed by: SWREI
GPG Key ID: 139D6573F92DA9F7

View File

@ -113,7 +113,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
alwaysIncludeMyNotes: true,
excludePureRenotes: !ps.withRenotes,
noteFilter: note => {
if (note.reply && note.reply.visibility === 'followers') {
if (note.reply && (me.id !== note.reply.userId) && (note.reply.visibility === 'followers')) {
if (!Object.hasOwn(followings, note.reply.userId)) return false;
}