Display content warning in mail notification emails (#6832)
This commit is contained in:
parent
33ee347c99
commit
6b76a6212d
|
@ -24,6 +24,11 @@
|
||||||
%bdi= display_name(status.account)
|
%bdi= display_name(status.account)
|
||||||
= "@#{status.account.acct}"
|
= "@#{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' }
|
%div{ dir: rtl_status?(status) ? 'rtl' : 'ltr' }
|
||||||
= Formatter.instance.format(status)
|
= Formatter.instance.format(status)
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
<% if status.spoiler_text? %>
|
||||||
|
<%= raw status.spoiler_text %>
|
||||||
|
----
|
||||||
|
|
||||||
|
<% end %>
|
||||||
<%= raw Formatter.instance.plaintext(status) %>
|
<%= raw Formatter.instance.plaintext(status) %>
|
||||||
|
|
||||||
<%= raw t('application_mailer.view')%> <%= web_url("statuses/#{status.id}") %>
|
<%= raw t('application_mailer.view')%> <%= web_url("statuses/#{status.id}") %>
|
||||||
|
|
Loading…
Reference in New Issue