1
0
Fork 1
mirror of https://example.com synced 2024-11-23 20:46:40 +09:00

fix image not displaying if no text

This commit is contained in:
Freeplay 2023-05-14 15:31:07 -04:00
parent b904d2616a
commit 448d830c51

View file

@ -188,7 +188,7 @@ const mfms = props.note.text
? extractMfmWithAnimation(mfm.parse(props.note.text))
: null;
const hasMfm = $ref(mfms.length > 0);
const hasMfm = $ref(mfms && mfms.length > 0);
let disableMfm = $ref(hasMfm && defaultStore.state.animatedMfm);