mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 14:49:29 +08:00

When showing a lazy-loaded image, copy the `srcset` property only when it is actually set. `copyImg.srcset = copyImg.srcset` is not actually a noop but creates an empty `srcset`, changing content security rules on the image.