summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/features/reactions-avatars.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/features/reactions-avatars.tsx b/source/features/reactions-avatars.tsx
index bdfca094..cc41f752 100644
--- a/source/features/reactions-avatars.tsx
+++ b/source/features/reactions-avatars.tsx
@@ -43,7 +43,8 @@ function getParticipants(button: HTMLButtonElement): Participant[] {
// If it's not a bot, use a shortcut URL #2125
if (cleanName === username) {
- const imageUrl = `/${username}.png?size=${window.devicePixelRatio * 20}`;
+ const size = `?size=${window.devicePixelRatio * 20}`;
+ const imageUrl = (pageDetect.isEnterprise() ? `/${username}.png` : `https://avatars.githubusercontent.com/${username}`) + size;
participants.push({button, imageUrl});
}
}