# 如何恢复头像

**URL:** https://meta.discourse.org/t/how-to-restore-avatars/146353
**Category:** Support
**Created:** [2020年三月31日 22:40 UTC](https://meta.discourse.org/t/how-to-restore-avatars/146353 "2020-03-31T22:40:30Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![mattmon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattmon/32/175049_2.png) [@mattmon](https://meta.discourse.org/u/mattmon)
#### Post date: [2020年四月1日 19:01 UTC](https://meta.discourse.org/t/how-to-restore-avatars/146353/3 "2020-04-01T19:01:32Z")

</div>

感谢跟进……

我已经解决了这个问题，原因是多方面的，也有部分是自己造成的：rofl

第一个问题是，我最近将部署迁移到了子目录，但没有[重新映射所有必要的路径](https://meta.discourse.org/t/subfolder-support-with-docker/30507/102?u=mattmon)。

我还将每个用户的 uploaded\_avatar\_id 字段重写为 nil，希望这样能让 Discourse 重新下载头像图片。显然我对此有误解，最后不得不从备份中恢复该字段：flushed

另一个问题是，在移动端视图中，头像没有显示在话题左侧，后来发现这是[事件插件的一个 bug](https://meta.discourse.org/t/avatars-missing-due-to-theme-or-plugin/146080/17)。

---

_[View the full topic](https://meta.discourse.org/t/how-to-restore-avatars/146353)._
