From 37c23fa187d9d35d21c9cefb9da27596d47f8eae Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 13 Dec 2019 13:50:48 -0800 Subject: [PATCH] avatar: fix broken image for emails with no gravatar this was because we blindly add ? to a url which already has query params --- src/js/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/client.js b/src/js/client.js index eff7eb86a..9a501aab6 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -333,7 +333,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout this._userInfo.twoFactorAuthenticationEnabled = userInfo.twoFactorAuthenticationEnabled; this._userInfo.admin = userInfo.admin; this._userInfo.source = userInfo.source; - this._userInfo.avatarUrl = userInfo.avatarUrl + '?' + Date.now(); // we add the timestamp to avoid caching + this._userInfo.avatarUrl = userInfo.avatarUrl + '?s=128&default=mp&ts=' + Date.now(); // we add the timestamp to avoid caching }; Client.prototype.setConfig = function (config) {