# 个人资料图片更换错误

**URL:** https://meta.discourse.org/t/profile-image-changing-bug/217184
**Category:** Bug
**Created:** [2022年二月5日 08:36 UTC](https://meta.discourse.org/t/profile-image-changing-bug/217184 "2022-02-05T08:36:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![qwe\_rfv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qwe_rfv/32/248878_2.png) [@qwe\_rfv](https://meta.discourse.org/u/qwe_rfv)
#### Post date: [2022年二月5日 08:36 UTC](https://meta.discourse.org/t/profile-image-changing-bug/217184/1 "2022-02-05T08:36:37Z")

</div>

如果有人引用了我，之后我更改了个人资料图片，那么在被引用的帖子中，我的个人资料图片没有更改

 ![](https://global.discourse-cdn.com/meta/original/3X/0/2/02f9c43d728e564e04831d6bb764068c88de9d35.png)  
[AyProductions: Image changed ChirsWard: quoted](https://community.appinventor.mit.edu/t/ai-starter-5554-emulator-white-screen-only/50290/4?u=qwe_rfv) 来自 [MIT App Inventor Community](https://community.appinventor.mit.edu/)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2022年二月5日 11:34 UTC](https://meta.discourse.org/t/profile-image-changing-bug/217184/2 "2022-02-05T11:34:01Z")

</div>

我还没有检查代码，但我认为头像已烘焙到已发布的帖子中，因此这些帖子将保留旧头像，除非帖子被重新烘焙。

我有成百上千（甚至上万）的帖子在这里，如果更改我的头像会重新烘焙所有帖子，我可以通过不断更改头像来造成大量的服务器活动。

此外，这在某种程度上是一种功能。这样，帖子记录的是您发帖时的身份，而不是您今天的身份。

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2022年二月5日 11:40 UTC](https://meta.discourse.org/t/profile-image-changing-bug/217184/3 "2022-02-05T11:40:09Z")

</div>

更改头像是否会重新烘焙用户引用的帖子？我不确定时间表。

* * *

\*\*编辑：\*\*我现在不确定了。🙂我一直在耐心等待它在我的测试站点上神奇地生效，但还没有成功。我敢肯定我曾在非员工论坛上看到过它在起作用，但回顾过去一个月中来自那里的几个 oneboxed 和引用的链接，似乎我仍然拥有旧头像。🤔

当我搜索时，我发现了这个，我认为它证实了它确实为他们重新烘焙了，但我认为我可能弄混了：

> [@Old user avatars in quoted text?](https://meta.discourse.org/t/old-user-avatars-in-quoted-text/95798/5):
>
> [Changing the avatar already triggers a rebake](https://github.com/discourse/discourse/blob/15f657309a9b457ff315482da2fe8fbbed9caa02/app/models/user.rb#L944-L945) of posts containing quotes, but it’s currently quite resource intensive to find and rebake all posts. So, it’s possible that some of them won’t be updated. Post revisions aren’t updated at all. I have plans to fix all of this when I’m working on improvements for user renaming/anonymizing in one of the next releases. It will require a new table that keeps track of all the places where a user is quoted, mentioned, oneboxed, and what not. If you want …

> <https://github.com/discourse/discourse/blob/15f657309a9b457ff315482da2fe8fbbed9caa02/app/models/user.rb#L944-L945>

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024年五月27日 14:03 UTC](https://meta.discourse.org/t/profile-image-changing-bug/217184/9 "2024-05-27T14:03:10Z")

</div>

为了给这个问题画上句号，这是一个 bug，现在已经修复了。 🥳

> <https://github.com/discourse/discourse/pull/27184>

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024年五月27日 14:03 UTC](https://meta.discourse.org/t/profile-image-changing-bug/217184/10 "2024-05-27T14:03:21Z")

</div>

请参阅 [Old user avatars in quoted text?](https://meta.discourse.org/t/old-user-avatars-in-quoted-text/95798) 获取关于此问题的最新主题。
