We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 926d4e5 commit caee016Copy full SHA for caee016
1 file changed
layouts/partials/navbar.html
@@ -325,19 +325,17 @@
325
}
326
};
327
function getAvatarUrl(response) {
328
- if (
329
- response &&
330
- typeof response.avatar_url === "string" &&
331
- response.avatar_url.trim()
332
- ) {
333
- return response.avatar_url.trim();
+ const avatarUrl = response?.avatarUrl || response?.avatar_url;
+
+ if (typeof avatarUrl === "string" && avatarUrl.trim()) {
+ return avatarUrl.trim();
334
335
336
return "";
337
338
339
function getUserProfileUrl(response) {
340
- const userId = response?.id;
+ const userId = response?.id ?? response?.userId ?? response?.user_id;
341
if (userId) {
342
return `${cloudAppUrl}/user/${encodeURIComponent(userId)}`;
343
0 commit comments