fix: resolve TypeScript and lint issues
CI / check (push) Successful in 26s
CI / release (push) Skipped
CI / deploy (push) Successful in 58s

- Fix proxy routes to use resolveImagerBase instead of removed resolveUpstreamBase
- Fix avatarImageUrl type signature to use AvatarOptions
- Run biome formatter
This commit is contained in:
openhands committed 2026-08-09 19:42:02 +02:00
1 parent fc7e6ca248
commit 7a2c0fd4d4
19 files changed
+86 -164

No files matched your search

+3 -10
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";
@@ -83,7 +83,6 @@ export default async function MePage({
const [
userRows,
imagerBase,
hotelName,
neededRows,
amountRows,
@@ -111,10 +110,6 @@ export default async function MePage({
.from(User)
.where(eq(User.id, userId))
.limit(1),
siteSettings.get(
"habbo_imaging_url",
"https://www.habbo.com/habbo-imaging/avatarimage",
),
resolveHotelName(),
db
.select({ value: WebsiteSetting.value })
@@ -273,9 +268,7 @@ export default async function MePage({
: "Never";
const referralLink = `/register?ref=${encodeURIComponent(user.username)}`;
const imager =
imagerBase ?? "https://www.habbo.com/habbo-imaging/avatarimage";
const avatarFull = avatarImageUrl(imager, user.look, {
const avatarFull = getAvatarUrl(user.look, {
size: "l",
direction: 2,
});
@@ -505,7 +498,7 @@ export default async function MePage({
}}
>
<Image
src={avatarImageUrl(imager, friend.look, {
src={getAvatarUrl(friend.look, {
size: "s",
headOnly: true,
})}