Merge pull request #2929 from techAPJ/patch-2

FIX: letter avatars were not getting stripped from short emails
This commit is contained in:
Robin Ward 2014-10-28 16:07:26 -04:00
commit 19d52c38de
1 changed files with 1 additions and 1 deletions

View File

@ -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