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:
parent
cb1fa72077
commit
1c7a40acc2
1 changed files with 7 additions and 7 deletions
|
@ -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)}`,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue