Commit 2957a71
authored
Fix user avatar display in comment widget for GitHub Enterprise (#8551)
* Initial plan
* Changes before error encountered
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Initial plan for fixing avatar display in comment widget for GitHub Enterprise
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Fix avatar display in comment widget for GitHub Enterprise
Apply isGitHubDotComAvatar check to comment widget code to prevent
broken avatar display for GitHub Enterprise users. For enterprise
avatars (non-githubusercontent.com URLs), skip fetching the avatar
and show no icon instead of a broken image.
Fixes:
- setReplyAuthor() in utils.ts (reply area avatar)
- TemporaryComment constructor in prComment.ts
- GHPRComment constructor in prComment.ts
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Add parens
* Merge branch 'main' into copilot/fix-avatar-in-comment-widget1 parent 3755bdd commit 2957a71
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| |||
0 commit comments