Switch tournament logoSrc to always absolute to fix social media preview

This commit is contained in:
Kalle 2024-06-30 20:35:39 +03:00
parent 5196a2197e
commit 7eeebb4bce

View File

@ -225,7 +225,7 @@ export async function findById(id: number) {
...result,
logoSrc: result.logoUrl
? userSubmittedImage(result.logoUrl)
: HACKY_resolvePicture(result),
: `${process.env.BASE_URL}${HACKY_resolvePicture(result)}`,
participatedUsers: result.participatedUsers.map((user) => user.userId),
};
}