mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 10:54:22 +08:00
27e94f2f98
When embedding secure images which have been oneboxed, we checked to see if the image's parent's parent had the class onebox-body. This was not always effective as if the image does not get resized/optimized then it does not have the aspect-image div wrapping it. This would cause the image to embed in the email but be huge. This PR changes the check to see if any of the image's ancestors have the class onebox-body, or if the image has the onebox-avatar class to account for variations in HTML structure. |
||
---|---|---|
.. | ||
authentication_results_spec.rb | ||
cleaner_spec.rb | ||
email_spec.rb | ||
message_builder_spec.rb | ||
processor_spec.rb | ||
receiver_spec.rb | ||
renderer_spec.rb | ||
sender_spec.rb | ||
styles_spec.rb |