diff --git a/packages/frontend/src/utility/get-self-note-ids.ts b/packages/frontend/src/utility/get-self-note-ids.ts index 07b6c076d3..7cd771e8a0 100644 --- a/packages/frontend/src/utility/get-self-note-ids.ts +++ b/packages/frontend/src/utility/get-self-note-ids.ts @@ -12,7 +12,10 @@ import type * as Misskey from 'misskey-js'; export function getSelfNoteIds(note: Misskey.entities.Note): string[] { const ids = [note.id]; // Regular note if (note.reply) ids.push(note.reply.id); // Reply + else if (note.replyId) ids.push(note.replyId); // Reply (not packed) if (note.renote) ids.push(note.renote.id); // Renote or quote + else if (note.renoteId) ids.push(note.renoteId); // Renote or quote (not packed) if (note.renote?.renote) ids.push(note.renote.renote.id); // Renote *of* a quote + else if (note.renote?.renoteId) ids.push(note.renote.renoteId); // Renote *of* a quote (not packed) return ids; }