Fix Broken image/attachment on migrated thread

Most of the image or attachment on the migrated thread is broken.

​​​​​​​