# 引用テキストに古いユーザーのアバターが表示されますか？

**URL:** https://meta.discourse.org/t/old-user-avatars-in-quoted-text/95798
**Category:** Bug
**Tags:** fixed
**Created:** [2018 年 8 月 28 日午前 2:16 UTC](https://meta.discourse.org/t/old-user-avatars-in-quoted-text/95798 "2018-08-28T02:16:46Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [2018 年 8 月 28 日午後 5:33 UTC](https://meta.discourse.org/t/old-user-avatars-in-quoted-text/95798/5 "2018-08-28T17:33:39Z")

</div>

[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 to work on this, please keep in mind that rebaking just to update the avatar isn’t needed. I’d suggest reusing [code from `UpdatUsername`](https://github.com/discourse/discourse/blob/15f657309a9b457ff315482da2fe8fbbed9caa02/app/jobs/regular/update_username.rb#L149-L165). It’s a lot faster.

---

_[View the full topic](https://meta.discourse.org/t/old-user-avatars-in-quoted-text/95798)._
