From 7e12674e8c058a992f14437730d08f4fe3dae047 Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Fri, 8 Dec 2023 13:36:11 +0530 Subject: [PATCH] static: Make unknown user avatar work on mobile. Clients like mobile add "-medium.png" to the url to get the medium avatar if the avatar_url field of user object is set to some string other than the gravatar URL. This commit adds a symlink to offer the unknown user avatar at unknown-user-avatar-medium.png as well so that mobile clients can correctly render the medium avatars for inaccessible users. Fixes #28071. --- static/images/unknown-user-avatar-medium.png | 1 + 1 file changed, 1 insertion(+) create mode 120000 static/images/unknown-user-avatar-medium.png diff --git a/static/images/unknown-user-avatar-medium.png b/static/images/unknown-user-avatar-medium.png new file mode 120000 index 0000000000..e0256987a5 --- /dev/null +++ b/static/images/unknown-user-avatar-medium.png @@ -0,0 +1 @@ +unknown-user-avatar.png \ No newline at end of file