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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user