mirror of
https://github.com/discourse/discourse.git
synced 2025-04-14 22:42:57 +08:00
FIX: makes sure email-preview is set
This commit is contained in:
parent
dd76ba90b3
commit
391ee4dfbb
@ -15,7 +15,7 @@ after_initialize do
|
||||
on(:reduce_cooked) do |fragment|
|
||||
container = fragment.css(".discourse-local-date").first
|
||||
|
||||
if container
|
||||
if container && container.attributes["data-email-preview"]
|
||||
preview = container.attributes["data-email-preview"].value
|
||||
container.content = preview
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user