mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00

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.