1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-23 14:46:40 +09:00

fix(frontend): 引用RNの判定の条件が不完全だった問題を修正 (MisskeyIO#806)

This commit is contained in:
あわわわとーにゅ 2024-11-09 03:48:51 +09:00 committed by GitHub
parent 6a697785dc
commit 9782370e86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
);
@ -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
);
@ -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
);