Skip to content

Commit

Permalink
fix(frontend): 引用RNの判定の条件が不完全だった問題を修正 (#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
u1-liquid authored Nov 8, 2024
1 parent 6a69778 commit 9782370
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/frontend/src/scripts/get-note-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ export async function getNoteClipMenu(props: {

const isRenote = (
props.note.renote != null &&
props.note.reply == null &&
props.note.text == null &&
props.note.fileIds.length === 0 &&
props.note.cw == null &&
props.note.fileIds && props.note.fileIds.length === 0 &&
props.note.poll == null
);

Expand Down Expand Up @@ -164,8 +166,10 @@ export function getNoteMenu(props: {
}) {
const isRenote = (
props.note.renote != null &&
props.note.reply == null &&
props.note.text == null &&
props.note.fileIds.length === 0 &&
props.note.cw == null &&
props.note.fileIds && props.note.fileIds.length === 0 &&
props.note.poll == null
);

Expand Down Expand Up @@ -509,8 +513,10 @@ export function getRenoteMenu(props: {
}) {
const isRenote = (
props.note.renote != null &&
props.note.reply == null &&
props.note.text == null &&
props.note.fileIds.length === 0 &&
props.note.cw == null &&
props.note.fileIds && props.note.fileIds.length === 0 &&
props.note.poll == null
);

Expand Down

0 comments on commit 9782370

Please sign in to comment.