Ensure HeaderBar and Profile view use the same profile object so avatar gets synced

This commit is contained in:
Johannes Zellner
2025-07-16 18:32:06 +02:00
parent 5967907f86
commit b1752de36f
4 changed files with 29 additions and 27 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ function create() {
result.body.isAtLeastOwner = [ ROLES.OWNER ].indexOf(result.body.role) !== -1;
result.body.backgroundImageUrl = result.body.hasBackgroundImage ? `${API_ORIGIN}/api/v1/profile/background_image?access_token=${accessToken}&bustcache=${Date.now()}` : '';
result.body.avatarUrl = `${API_ORIGIN}/api/v1/profile/avatar/${result.body.id}`;
result.body.avatarUrl = `${API_ORIGIN}/api/v1/profile/avatar/${result.body.id}?ts=${Date.now()}`;
profileCached = result.body;