# 放大聊天中的图片在发送图片消息后无法打开

**URL:** <https://meta.discourse.org/t/images-in-an-enlarged-chat-cannot-be-opened-after-a-message-with-the-image-is-posted/352881>\
**Category:** Bug\
**Tags:** chat\
**Created:** [2025年二月18日 11:20 UTC](https://meta.discourse.org/t/images-in-an-enlarged-chat-cannot-be-opened-after-a-message-with-the-image-is-posted/352881 "2025-02-18T11:20:56Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2025年二月20日 10:09 UTC](https://meta.discourse.org/t/images-in-an-enlarged-chat-cannot-be-opened-after-a-message-with-the-image-is-posted/352881/8 "2025-02-20T10:09:37Z")

</div>

感谢 @meglio 和 @Arkshine！

将普通的“装饰已烹饪”限制在仅消息内容是故意的。但我们确实添加了一些特定的灯箱逻辑来处理图像。看起来它没有处理原始图像被替换为优化版本的情况。

修复在此处：

> <https://github.com/discourse/discourse/pull/31414>
>
> When a message is first sent, the original upload URL is used for a split-second… before it's replaced by the optimised thumbnail. Using \`didInsert\` didn't re-run on any changes to the uploads. Switching to a proper modifier, and checking the length of the uploads array within it, will ensure that it is re-run whenever the uploads change.

---

_[View the full topic](https://meta.discourse.org/t/images-in-an-enlarged-chat-cannot-be-opened-after-a-message-with-the-image-is-posted/352881)._
