Broken image in Discourse (but they work in the message preview)

The broken images were originally stored on the server. I have resolved this issue by using migrate_to_S3, but I have encountered a new problem.