NC 24.0.5 - personal profile picture and pictures of other contacts are not shown anymore

Nextcloud version (eg, 20.0.5): 24.0.5
Operating system and version (eg, Ubuntu 20.04): Linux
Apache or nginx version (eg, Apache 2.4.25): 2.4.53
PHP version (eg, 7.4): 8.0.20

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): YES

Steps to replicate it:

After upgrading my server from Nextcloud v24.0.4 to v24.0.5 the personal profile picture is not shown anymore. Not in the upper right corner, nor if I open the personal settings. The profile picture is also not shown in the Windows or Android Nextcloud app anymore after a sync has taken place, instead the character avatar is shown, like “Tom Jones” → “TJ”.

If I open the user management contact pictures of other users are also not shown anymore. Strange is, that the picuture are shown if I share a file or folder or e.g. in the calendar app. Therefore I assume that the pictures itself are still available but something must have been changed in the server code which prevents it from being displayed?!

Can anyone else confirm this behavior?

I’ve addressed this issue with the following bug report: