dashboard: no need for additional avatar query args

This commit is contained in:
Johannes Zellner
2024-01-29 13:27:22 +01:00
parent c8b997f732
commit 35eb17a922

View File

@@ -746,7 +746,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
this._userInfo.twoFactorAuthenticationEnabled = userInfo.twoFactorAuthenticationEnabled;
this._userInfo.role = userInfo.role;
this._userInfo.source = userInfo.source;
this._userInfo.avatarUrl = userInfo.avatarUrl + '?s=128&default=mp&ts=' + Date.now(); // we add the timestamp to avoid caching
this._userInfo.avatarUrl = userInfo.avatarUrl + '?ts=' + Date.now(); // we add the timestamp to avoid caching
this._userInfo.hasBackgroundImage = userInfo.hasBackgroundImage;
this._userInfo.isAtLeastOwner = [ ROLES.OWNER ].indexOf(userInfo.role) !== -1;
this._userInfo.isAtLeastAdmin = [ ROLES.OWNER, ROLES.ADMIN ].indexOf(userInfo.role) !== -1;