mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
Merge pull request #2929 from techAPJ/patch-2
FIX: letter avatars were not getting stripped from short emails
This commit is contained in:
+1
-1
@@ -155,7 +155,7 @@ module Email
|
||||
|
||||
def strip_avatars_and_emojis
|
||||
@fragment.css('img').each do |img|
|
||||
if img['src'] =~ /user_avatar/
|
||||
if img['src'] =~ /user_avatar/ || img['src'] =~ /letter_avatar/
|
||||
img.parent['style'] = "vertical-align: top;" if img.parent.name == 'td'
|
||||
img.remove
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user