diff --git a/frontend/pages/u/[user]/index.tsx b/frontend/pages/u/[user]/index.tsx
index 5f95216..e70cd35 100644
--- a/frontend/pages/u/[user]/index.tsx
+++ b/frontend/pages/u/[user]/index.tsx
@@ -32,6 +32,9 @@ interface Props {
export default function Index({ user, partialMembers }: Props) {
return (
<>
+
+ {`@${user.username} - pronouns.cc`}
+
@@ -89,14 +92,21 @@ function UserHead({ user }: { user: User }) {
) {
description = `@${user.username} goes by ${user.names
.filter((name) => name.status === WordStatus.Favourite)
+ .map((name) => name.name)
.join(", ")} and uses ${user.pronouns
.filter((pronoun) => pronoun.status === WordStatus.Favourite)
+ .map(
+ (pronoun) =>
+ pronoun.display_text ??
+ pronoun.pronouns.split("/").slice(0, 2).join("/")
+ )
.join(", ")} pronouns.`;
} else if (
user.names?.filter((name) => name.status === WordStatus.Favourite)?.length
) {
description = `@${user.username} goes by ${user.names
.filter((name) => name.status === WordStatus.Favourite)
+ .map((name) => name.name)
.join(", ")}.`;
} else if (
user.pronouns?.filter((pronoun) => pronoun.status === WordStatus.Favourite)
@@ -104,21 +114,24 @@ function UserHead({ user }: { user: User }) {
) {
description = `@${user.username} uses ${user.pronouns
.filter((pronoun) => pronoun.status === WordStatus.Favourite)
+ .map(
+ (pronoun) =>
+ pronoun.display_text ??
+ pronoun.pronouns.split("/").slice(0, 2).join("/")
+ )
.join(", ")} pronouns.`;
+ } else if (user.bio && user.bio !== "") {
+ description = user.bio.slice(0, 500);
}
- if (user.bio && user.bio !== "") {
- description += `\n\n${user.bio.slice(0, 500)}`;
- description.trim();
- }
+ const domain =
+ typeof window !== "undefined" ? window.location.origin : process.env.DOMAIN;
return (
-
{`@${user.username} - pronouns.cc`}
-
-
+
{user.avatar_urls && user.avatar_urls.length > 0 ? (
-
+
) : (
<>>
)}
-
+
);