0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch-backend.git synced 2024-12-22 13:13:00 -05:00

Add missing image proxy

This commit is contained in:
dragongoose 2023-04-11 14:34:18 -04:00
parent cb1fa72077
commit 1c7a40acc2
No known key found for this signature in database
GPG key ID: 50DB99B921579009

View file

@ -410,7 +410,7 @@ export class TwitchAPI {
const formatedGameData = {
name: rawGameData.name,
cover: rawGameData.avatarURL,
cover: `${process.env.URL}/proxy/img/${base64(rawGameData.avatarURL)}`,
description: rawGameData.description,
viewers: rawGameData.viewersCount,
followers: rawGameData.followersCount,
@ -453,9 +453,9 @@ export class TwitchAPI {
title: badge.title,
version: badge.version,
images: {
image1x: badge.image1x,
image2x: badge.image2x,
image4x: badge.image4x,
image1x: `${process.env.url}/proxy/img/${base64(badge.image1x)}`,
image2x: `${process.env.url}/proxy/img/${base64(badge.image2x)}`,
image4x: `${process.env.url}/proxy/img/${base64(badge.image4x)}`,
}
}
@ -496,9 +496,9 @@ export class TwitchAPI {
title: badge.title,
version: badge.version,
images: {
image1x: badge.image1x,
image2x: badge.image2x,
image4x: badge.image4x,
image1x: `${process.env.url}/proxy/img/${base64(badge.image1x)}`,
image2x: `${process.env.url}/proxy/img/${base64(badge.image2x)}`,
image4x: `${process.env.url}/proxy/img/${base64(badge.image4x)}`,
}
}