diff --git a/components/buttons/DropdownElement.vue b/components/buttons/DropdownElement.vue index e254d92..6ea71ea 100644 --- a/components/buttons/DropdownElement.vue +++ b/components/buttons/DropdownElement.vue @@ -9,11 +9,13 @@ \ No newline at end of file diff --git a/components/dropdowns/AdaptiveDropdown.vue b/components/dropdowns/AdaptiveDropdown.vue index 2c97e7e..94309fa 100644 --- a/components/dropdowns/AdaptiveDropdown.vue +++ b/components/dropdowns/AdaptiveDropdown.vue @@ -24,6 +24,6 @@ \ No newline at end of file diff --git a/components/social-elements/notes/note.vue b/components/social-elements/notes/note.vue index 8deee15..045cd3f 100644 --- a/components/social-elements/notes/note.vue +++ b/components/social-elements/notes/note.vue @@ -103,10 +103,10 @@ const client = await useMegalodon(); const mentions = await useResolveMentions(props.note?.mentions ?? [], client); const content = props.note ? await useParsedContent( - props.note.content, - props.note.emojis, - mentions.value, - ) + props.note.content, + props.note.emojis, + mentions.value, + ) : ""; const numberFormat = (number = 0) => new Intl.NumberFormat(undefined, { diff --git a/pages/[username]/index.vue b/pages/[username]/index.vue index 9ec7cfb..85e2a33 100644 --- a/pages/[username]/index.vue +++ b/pages/[username]/index.vue @@ -102,11 +102,15 @@ const { timeline, loadNext, loadPrev } = useAccountTimeline( ); const skeleton = ref(null); -const parsedNote = account ? await useParsedContent(account?.note, account?.emojis, []) : ref(""); -const parsedFields = await Promise.all(account?.fields.map(async (field) => ({ - name: await useParsedContent(field.name, account.emojis, []), - value: await useParsedContent(field.value, account.emojis, []), -})) ?? []); +const parsedNote = account + ? await useParsedContent(account?.note, account?.emojis, []) + : ref(""); +const parsedFields = await Promise.all( + account?.fields.map(async (field) => ({ + name: await useParsedContent(field.name, account.emojis, []), + value: await useParsedContent(field.value, account.emojis, []), + })) ?? [], +); onMounted(() => { useIntersectionObserver(skeleton, async (entries) => {