# Avatar image URLs inside quotes in imported replies are not re-written

**URL:** https://meta.discourse.org/t/avatar-image-urls-inside-quotes-in-imported-replies-are-not-re-written/31540
**Category:** Migration
**Tags:** phpbb
**Created:** [30 ביולי,‏ 2015,‏ 12:13am UTC](https://meta.discourse.org/t/avatar-image-urls-inside-quotes-in-imported-replies-are-not-re-written/31540 "2015-07-30T00:13:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jbyauk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jbyauk/32/116499_2.png) [@jbyauk](https://meta.discourse.org/u/jbyauk)
#### Post date: [30 ביולי,‏ 2015,‏ 12:13am UTC](https://meta.discourse.org/t/avatar-image-urls-inside-quotes-in-imported-replies-are-not-re-written/31540/1 "2015-07-30T00:13:54Z")

</div>

I recently went through the import process to bring an old phpBB3 forum onto Discourse. I followed the route of setting up a development environment on a local box for the import from phpBB, and then using the backup/restore process to bring the data over to our production instance installed using the supported Docker method. The forum is now live on Discourse.

I’m running into an issue, however, with replies that contain quoted posts—the avatars in the quote blocks aren’t showing up. I’ve traced the problem to the fact that the ‘cooked’ HTML for the replies does not seem to have been refreshed after restoring the backup. The avatar URLs in the quote blocks are pointing to ‘localhost’ from the development environment instead of the forum hostname on the production instance.

Is there a way to manually trigger a refresh on all of the replies’ cooked HTML?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [30 ביולי,‏ 2015,‏ 1:27am UTC](https://meta.discourse.org/t/avatar-image-urls-inside-quotes-in-imported-replies-are-not-re-written/31540/2 "2015-07-30T01:27:56Z")

</div>

Yes there is a rake task to rebake all posts, use that.

---

<div class="post-metadata">

### Author: ![jbyauk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jbyauk/32/116499_2.png) [@jbyauk](https://meta.discourse.org/u/jbyauk)
#### Post date: [30 ביולי,‏ 2015,‏ 3:46am UTC](https://meta.discourse.org/t/avatar-image-urls-inside-quotes-in-imported-replies-are-not-re-written/31540/3 "2015-07-30T03:46:15Z")

</div>

Running `rake posts:rebake` inside the Docker container fixed the issue completely– thanks for the prompt reply!

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [30 ביולי,‏ 2015,‏ 9:07am UTC](https://meta.discourse.org/t/avatar-image-urls-inside-quotes-in-imported-replies-are-not-re-written/31540/4 "2015-07-30T09:07:18Z")

</div>


