From f7f3e9c7e1e9b4823cb00ae655def031e7fd62b5 Mon Sep 17 00:00:00 2001 From: patak Date: Mon, 21 Nov 2022 16:07:55 +0100 Subject: [PATCH] fix: handle undefined displayName (#21) --- components/account/AccountHeader.vue | 2 +- components/account/AccountInfo.vue | 2 +- components/account/AccountInlineInfo.vue | 2 +- components/notification/NotificationCard.vue | 12 +++++++----- composables/masto.ts | 5 +++++ pages/@[user]/[post].vue | 2 +- 6 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 composables/masto.ts diff --git a/components/account/AccountHeader.vue b/components/account/AccountHeader.vue index 85dd466f..f149dbb9 100644 --- a/components/account/AccountHeader.vue +++ b/components/account/AccountHeader.vue @@ -25,7 +25,7 @@ const createdAt = $computed(() => { - +

@{{ account.acct }}

diff --git a/components/account/AccountInfo.vue b/components/account/AccountInfo.vue index 6b586899..8d2e8af1 100644 --- a/components/account/AccountInfo.vue +++ b/components/account/AccountInfo.vue @@ -15,7 +15,7 @@ const { link = true } = defineProps<{
- +

@{{ account.acct }}

diff --git a/components/account/AccountInlineInfo.vue b/components/account/AccountInlineInfo.vue index 364f7de6..a1ddad14 100644 --- a/components/account/AccountInlineInfo.vue +++ b/components/account/AccountInlineInfo.vue @@ -9,6 +9,6 @@ defineProps<{ diff --git a/components/notification/NotificationCard.vue b/components/notification/NotificationCard.vue index 44bed60c..64a067a1 100644 --- a/components/notification/NotificationCard.vue +++ b/components/notification/NotificationCard.vue @@ -1,35 +1,37 @@