52c21f9066
When the `content` attribute is set for Action Text attachments, Trix shows this content. 1ac6d40d36a07b48a67bc7f8627fd1f92bffcb14 introduced sanitizing the `content` attribute of ActionText::Attachable::ContentAttachment. However, it would also set the `content` attribute when it isn't present. Instead of showing the image preview, Trix would use the empty `content` attribute resulting in missing previews for images.
210 B
210 B
-
Only sanitize
content
attribute when present in attachments.Petrik de Heus
Please check 7-2-stable for previous changes.