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…
Reference in New Issue