Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong sponsors images from OC #4334

Merged
merged 1 commit into from Jun 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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