fix: make getAvatarUrl auto-convert figure strings
- 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:
1 parent
2f708bcf11
commit
3213126a12
2 files changed
+7
-4
No files matched your search
@@ -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,
|
||||
})}
|
||||
|
||||
Reference in new issue
Block a user