From 01704078331b6791efa6ad3cc303daf02453b818 Mon Sep 17 00:00:00 2001 From: Freeplay Date: Wed, 24 May 2023 13:22:53 -0400 Subject: [PATCH] Fix 'noteOf' text in post title --- packages/client/src/pages/note.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/pages/note.vue b/packages/client/src/pages/note.vue index 5b408bdaf..8e710de47 100644 --- a/packages/client/src/pages/note.vue +++ b/packages/client/src/pages/note.vue @@ -162,12 +162,12 @@ definePageMetadata( computed(() => note ? { - title: i18n.t("noteOf", { user: note.user.name }), + title: i18n.t("noteOf", { user: note.user.name || note.user.username }), subtitle: new Date(note.createdAt).toLocaleString(), avatar: note.user, path: `/notes/${note.id}`, share: { - title: i18n.t("noteOf", { user: note.user.name }), + title: i18n.t("noteOf", { user: note.user.name || note.user.username }), text: note.text, }, }