fix: 🐛 Properly render emojis in display names

This commit is contained in:
Jesse Wierzbinski 2024-11-19 13:42:21 +01:00
parent 9dede81d20
commit 7c63b81129
No known key found for this signature in database
2 changed files with 7 additions and 3 deletions

View file

@ -101,7 +101,10 @@ export const useParsedAccount = (
account: MaybeRef<Account | undefined | null>,
settings: MaybeRef<Settings>,
) => {
const displayName = computed(() => toValue(account)?.display_name ?? "");
const displayName = computed(
() =>
toValue(account)?.display_name ?? toValue(account)?.username ?? "",
);
const note = computed(() => toValue(account)?.note ?? "");
const fields = computed(() => toValue(account)?.fields ?? []);
const emojis = computed(() => toValue(account)?.emojis ?? []);