From 235af71f85ee2591240a6ee5f32fce5bbb4947ba Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 12 Dec 2025 17:30:22 +0100 Subject: [PATCH] [Glitch] Fix wrapstodon not falling back to username when display name is not set Port 4af8e83c8a236265c46a1b984fa5dbd3a7c73dfe to glitch-soc Signed-off-by: Claire --- .../flavours/glitch/features/annual_report/archetype.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/features/annual_report/archetype.tsx b/app/javascript/flavours/glitch/features/annual_report/archetype.tsx index 297e12cda8..352a99656b 100644 --- a/app/javascript/flavours/glitch/features/annual_report/archetype.tsx +++ b/app/javascript/flavours/glitch/features/annual_report/archetype.tsx @@ -137,7 +137,8 @@ export const Archetype: React.FC<{ ? archetypeSelfDescriptions : archetypePublicDescriptions; - const name = account?.display_name; + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing -- we specifically want to fallback if `display_name` is empty + const name = account?.display_name || account?.username; return (