fix: make getAvatarUrl auto-convert figure strings
CI / check (push) Successful in 34s
CI / release (push) Skipped
CI / deploy (push) Successful in 58s

- Update getAvatarUrl in imager.ts to use getNewFormatFigure for automatic conversion
- Update me/page.tsx to use avatarImageUrl (which also converts)
- This ensures all avatar URLs use the short epicnabbo.nl format
This commit is contained in:
openhands committed 2026-08-09 19:57:22 +02:00
1 parent 2f708bcf11
commit 3213126a12
2 files changed
+7 -4

No files matched your search

+3 -3
View File
@@ -19,8 +19,8 @@ import {
WebsiteLoginLogs,
WebsiteSetting,
} from "@/lib/db";
import { avatarImageUrl } from "@/lib/format";
import { resolveHotelName } from "@/lib/hotel-name";
import { getAvatarUrl } from "@/lib/imager";
import { siteSettings } from "@/lib/services/site-settings";
import CopyReferralButton from "./CopyReferralButton";
@@ -268,7 +268,7 @@ export default async function MePage({
: "Never";
const referralLink = `/register?ref=${encodeURIComponent(user.username)}`;
const avatarFull = getAvatarUrl(user.look, {
const avatarFull = avatarImageUrl(user.look, {
size: "l",
direction: 2,
});
@@ -498,7 +498,7 @@ export default async function MePage({
}}
>
<Image
src={getAvatarUrl(friend.look, {
src={avatarImageUrl(friend.look, {
size: "s",
headOnly: true,
})}