How to restore avatars

AI-generated summary

The discussion revolves around restoring avatars in Discourse. mattmon initially asked how to redownload avatars from email providers like Yahoo and Gmail, noting that users had uploaded_avatar_id: nil. simon inquired about the cause. mattmon clarified that the issue stemmed from two problems: a misconfigured subdirectory deployment that required path remapping, and an incorrect manual reset of uploaded_avatar_id to nil, which he later restored from a backup. Additionally, missing avatars in mobile view were traced to a bug in the events plugin.

Is there a way to redownload the avatars provided by initial account creation?

For example, those that come from yahoo, gmail, etc?

All user have uploaded_avatar_id: nil

how can we get the avatar pictures back?

Do you have any idea how this happened? Did users lose their avatars after you updated Discourse?

Thanks for following up…

I got this figured out, the problem was compound and partially self-inflicted :rofl:

The first problem was that I had recently transitioned to a subdirectory deployment and had not remapped all the necessary paths.

I had also rewritten uploaded_avatar_id to nil for each user in hope that would cause discourse to re-download the profile images. Obviously I was mistaken about that and ended up restoring the field from a backup :flushed:

The other problem was that avatars were not displayed to the left of topics in mobile view, this turned out to be a bug in the events plugin.