mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 20:51:12 +08:00
FIX: allow lists in summary email post excerpts
This commit is contained in:
parent
d16c4b0677
commit
fcd20a70d7
@ -37,7 +37,7 @@ module UserNotificationsHelper
|
|||||||
|
|
||||||
result = ""
|
result = ""
|
||||||
length = 0
|
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?
|
if node.text.present?
|
||||||
result << node.to_s
|
result << node.to_s
|
||||||
length += node.inner_text.length
|
length += node.inner_text.length
|
||||||
|
Loading…
x
Reference in New Issue
Block a user