Skip to content
Snippets Groups Projects
Commit 6b76a621 authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

Display content warning in mail notification emails (#6832)

parent 33ee347c
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,11 @@
%bdi= display_name(status.account)
= "@#{status.account.acct}"
- if status.spoiler_text?
%div{ dir: rtl_status?(status) ? 'rtl' : 'ltr' }
%p
= Formatter.instance.format_spoiler(status)
%div{ dir: rtl_status?(status) ? 'rtl' : 'ltr' }
= Formatter.instance.format(status)
......
<% if status.spoiler_text? %>
<%= raw status.spoiler_text %>
----
<% end %>
<%= raw Formatter.instance.plaintext(status) %>
<%= raw t('application_mailer.view')%> <%= web_url("statuses/#{status.id}") %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment