Skip to content
Snippets Groups Projects
Unverified Commit 879f2d2b authored by おさむのひと's avatar おさむのひと Committed by GitHub
Browse files

ref化したnoteの変更通知がMfmコンポーネントまで到達してないのを修正 (#12282)


Co-authored-by: default avatarosamu <46447427+sam-osamu@users.noreply.github.com>
parent b02f7244
No related branches found
No related tags found
No related merge requests found
......@@ -234,8 +234,8 @@ const clipButton = shallowRef<HTMLElement>();
let appearNote = $computed(() => isRenote ? note.renote as Misskey.entities.Note : note);
const isMyRenote = $i && ($i.id === note.userId);
const showContent = ref(false);
const parsed = appearNote.text ? mfm.parse(appearNote.text) : null;
const urls = parsed ? extractUrlFromMfm(parsed) : null;
const parsed = $computed(() => appearNote.text ? mfm.parse(appearNote.text) : null);
const urls = $computed(() => parsed ? extractUrlFromMfm(parsed) : null);
const isLong = shouldCollapsed(appearNote, urls ?? []);
const collapsed = ref(appearNote.cw == null && isLong);
const isDeleted = ref(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment