Skip to content

Commit

Permalink
Update gravatar default avatar for guest users
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenWeathers committed Apr 7, 2024
1 parent 6a06324 commit 044f789
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ui/src/components/user/UserAvatar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,19 @@
{#if AvatarService === 'gravatar'}
{#if gravatarHash !== ''}
<img
src="https://gravatar.com/avatar/{gravatarHash}?s={width}&d={avatar}&r=g"
src="https://gravatar.com/avatar/{gravatarHash}?s={width}&d={avatar !== ''
? avatar
: 'mp'}&r=g"
alt="{$LL.avatarAltText()}"
class="{klass}"
title="{userName}"
{...options}
/>
{:else}
<img
src="https://gravatar.com/avatar/{warriorId}?s={width}&d={avatar}&r=g"
src="https://gravatar.com/avatar/{warriorId}?s={width}&d={avatar !== ''
? avatar
: 'mp'}&r=g"
alt="{$LL.avatarAltText()}"
class="{klass}"
title="{userName}"
Expand Down

0 comments on commit 044f789

Please sign in to comment.