mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 12:11:16 -05:00
FIX: letter avatars were not getting stripped from short emails
This commit is contained in:
parent
edea7180f4
commit
57fbe4defb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue