From e6b351b472c61c3a59c5346dc477ba4338165311 Mon Sep 17 00:00:00 2001
From: Gabriel Kaszewski
Date: Fri, 15 May 2026 03:16:17 +0200
Subject: [PATCH] feat(frontend): show fediverse handle @user@domain on local
user profiles
---
thoughts-frontend/app/users/[username]/page.tsx | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/thoughts-frontend/app/users/[username]/page.tsx b/thoughts-frontend/app/users/[username]/page.tsx
index 776b0de..4cb347f 100644
--- a/thoughts-frontend/app/users/[username]/page.tsx
+++ b/thoughts-frontend/app/users/[username]/page.tsx
@@ -105,6 +105,12 @@ export default async function ProfilePage({ params }: ProfilePageProps) {
const isOwnProfile = me?.username === user.username;
const isFollowing = user.isFollowedByViewer;
+ const apiDomain = process.env.NEXT_PUBLIC_API_URL
+ ? new URL(process.env.NEXT_PUBLIC_API_URL).hostname
+ : null;
+ const fediverseHandle =
+ user.local && apiDomain ? `@${user.username}@${apiDomain}` : null;
+
const authorDetails = new Map();
authorDetails.set(user.username, { avatarUrl: user.avatarUrl });
@@ -182,6 +188,11 @@ export default async function ProfilePage({ params }: ProfilePageProps) {
>
@{user.username}
+ {fediverseHandle && (
+
+ {fediverseHandle}
+
+ )}