Skip to content

Commit

Permalink
perf(#144): updated the avatar size for flock component
Browse files Browse the repository at this point in the history
  • Loading branch information
sametcodes committed Apr 12, 2023
1 parent 1ad9891 commit 33668af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platforms/github/view/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export const getContributors: ViewComponent = async (result, config) => {
async (contributor: any, key: number) => {
const url = new URL(contributor.avatarUrl);
let params = qs.parse(url.search, { ignoreQueryPrefix: true });
url.search = qs.stringify({ ...params, s: "128" });
url.search = qs.stringify({ ...params, s: "64" });

const response = await fetch(url.toString());
const arrayBuffer = await response.arrayBuffer();
Expand Down Expand Up @@ -361,7 +361,7 @@ export const getUserSponsorList: ViewComponent = async (result, config) => {
async (sponsor: any, key: number) => {
const url = new URL(sponsor.sponsorEntity.avatarUrl);
let params = qs.parse(url.search, { ignoreQueryPrefix: true });
url.search = qs.stringify({ ...params, s: "128" });
url.search = qs.stringify({ ...params, s: "64" });

const response = await fetch(url.toString());
const arrayBuffer = await response.arrayBuffer();
Expand Down

0 comments on commit 33668af

Please sign in to comment.