Skip to content

Commit

Permalink
fix wrong sponsors images from OC (#4334)
Browse files Browse the repository at this point in the history
Signed-off-by: Outsider <outsideris@gmail.com>
  • Loading branch information
outsideris committed Jun 14, 2020
1 parent f073689 commit 9d4a8ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/_data/supporters.js
Expand Up @@ -128,7 +128,7 @@ module.exports = async () => {
await Promise.all(
supporters.sponsors.map(async sponsor => {
const filePath = resolve(supporterImagePath, sponsor.id + '.png');
const {body} = await needle('get', sponsor.avatar);
const {body} = await needle('get', encodeURI(sponsor.avatar));
sponsor.dimensions = imageSize(body);
await writeFile(filePath, body);
})
Expand All @@ -138,7 +138,7 @@ module.exports = async () => {
await Promise.all(
supporters.backers.map(async backer => {
const filePath = resolve(supporterImagePath, backer.id + '.png');
const {body} = await needle('get', backer.avatar);
const {body} = await needle('get', encodeURI(backer.avatar));
await writeFile(filePath, body);
})
);
Expand Down

0 comments on commit 9d4a8ec

Please sign in to comment.