avatar: fix broken image for emails with no gravatar

this was because we blindly add ? to a url which already has query params
This commit is contained in:
Girish Ramakrishnan
2019-12-13 13:50:48 -08:00
parent 2eeb99e869
commit 37c23fa187

View File

@@ -333,7 +333,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
this._userInfo.twoFactorAuthenticationEnabled = userInfo.twoFactorAuthenticationEnabled; this._userInfo.twoFactorAuthenticationEnabled = userInfo.twoFactorAuthenticationEnabled;
this._userInfo.admin = userInfo.admin; this._userInfo.admin = userInfo.admin;
this._userInfo.source = userInfo.source; 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) { Client.prototype.setConfig = function (config) {