apply correct media prefixes

This commit is contained in:
tresabhi committed 2026-05-18 16:32:46 -05:00
1 parent 3c92ab3a19
commit cca46957bc
4 files changed
+21 -7

No files matched your search

@@ -12,5 +12,7 @@ export { getStaticPaths } from "./[id].json";
*/
export async function GET({ params }: APIContext<never, { id: string }>) {
const avatar = await api.avatar(params.id);
return await imageProxy(avatar.profile_avatar!.avatar);
return await imageProxy(
api.mediaPrefix(avatar.profile_avatar!.avatar!.value),
);
}