Skip to content

Commit

Permalink
FIX: allow lists in summary email post excerpts
Browse files Browse the repository at this point in the history
  • Loading branch information
nlalonde committed Apr 11, 2018
1 parent d16c4b0 commit fcd20a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/user_notifications_helper.rb
Expand Up @@ -37,7 +37,7 @@ def first_paragraphs_from(html)

result = ""
length = 0
doc.css('body > p, aside.onebox').each do |node|
doc.css('body > p, aside.onebox, body > ul').each do |node|
if node.text.present?
result << node.to_s
length += node.inner_text.length
Expand Down

0 comments on commit fcd20a7

Please sign in to comment.