fix: remove explicit size:l from avatar URLs
CI / check (push) Successful in 31s
CI / release (push) Skipped
CI / deploy (push) Successful in 58s

- Now uses default size (m) which is omitted from URL
- Cleaner URLs without size parameter
This commit is contained in:
openhands committed 2026-08-09 20:13:41 +02:00
1 parent 0aef27efc4
commit 49185dd7a9
8 files changed
+5 -8

No files matched your search

+1 -1
View File
@@ -205,7 +205,7 @@ export default async function GuildPage({
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
className="avatar"
src={avatarImageUrl(m.look, { size: "l" })}
src={avatarImageUrl(m.look)}
alt={`${m.username} avatar`}
width={50}
height={75}
-1
View File
@@ -269,7 +269,6 @@ export default async function MePage({
const referralLink = `/register?ref=${encodeURIComponent(user.username)}`;
const avatarFull = avatarImageUrl(user.look, {
size: "l",
direction: 2,
});
content = (
+1 -1
View File
@@ -40,7 +40,7 @@ export default async function SettingsPage() {
if (!user) redirect("/login");
const avatar = avatarImageUrl(user.look, { size: "l" });
const avatar = avatarImageUrl(user.look);
return (
<div className="flex flex-col gap-6 pb-14">
+1 -1
View File
@@ -107,7 +107,7 @@ export default async function ProfilePage({
if (!user) notFound();
const avatar = avatarImageUrl(user.look, { size: "l" });
const avatar = avatarImageUrl(user.look);
const registered = formatDate(new Date(user.accountCreated * 1000), "date");
const meId = Number(session?.user?.id);
const isLoggedIn = Number.isInteger(meId) && meId > 0;