mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 17:48:39 +08:00

* When copying the markdown for an image between posts, we were not adding the srcset and data-small-image attributes which are done by calling optimize_image! in cooked post processor * Refactored the code which was confusing in its current state (the consider_for_reuse method was super confusing) and fixed the issue