Skip to content

Commit

Permalink
Merge pull request #116 from appwrite/fix-join-community-anchor-rel
Browse files Browse the repository at this point in the history
fix: image avatar proxy
  • Loading branch information
TorstenDittmann authored Oct 26, 2023
2 parents 5bd994b + fb898fd commit a8bec1b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/pink/src/components/JoinCommunity.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@
});
function getAvatar(user: User) {
return `https://github.com/${user.username}.png`;
const url = new URL('https://cloud.appwrite.io/v1/avatars/image');
url.searchParams.set('project', 'console');
url.searchParams.set('width', '100');
url.searchParams.set('height', '100');
url.searchParams.set('url', `https://github.com/${user.username}.png`);
return url.toString();
}
function getUrl(user: User) {
Expand Down

2 comments on commit a8bec1b

@vercel
Copy link

@vercel vercel bot commented on a8bec1b Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on a8bec1b Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.