summaryrefslogtreecommitdiffstats
path: root/app/views/notification_mailer
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-03-28 01:17:17 +0200
committerGitHub <noreply@github.com>2022-03-28 01:17:17 +0200
commit2c45859ca9076c0b9916922e0be21ff83fc3b143 (patch)
tree475166829989e56d1327959878a4e1fdd8c6a6b8 /app/views/notification_mailer
parente6a159a64869927cca5535943cdf3a280aeb5394 (diff)
Refactor account and status formatting (#17877)
* Refactor status formatting * Add account formatting helpers * Remove StatusFormatter * Fixup * Fix copied typo
Diffstat (limited to 'app/views/notification_mailer')
-rw-r--r--app/views/notification_mailer/_status.text.erb2
-rw-r--r--app/views/notification_mailer/digest.text.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/notification_mailer/_status.text.erb b/app/views/notification_mailer/_status.text.erb
index bf6d2b62000..1dc8de739c7 100644
--- a/app/views/notification_mailer/_status.text.erb
+++ b/app/views/notification_mailer/_status.text.erb
@@ -3,6 +3,6 @@
> ----
>
<% end %>
-> <%= raw word_wrap(extract_plain_text(status.text, status.local?), break_sequence: "\n> ") %>
+> <%= raw word_wrap(extract_status_plain_text(status), break_sequence: "\n> ") %>
<%= raw t('application_mailer.view')%> <%= web_url("statuses/#{status.id}") %>
diff --git a/app/views/notification_mailer/digest.text.erb b/app/views/notification_mailer/digest.text.erb
index b767eb9c48b..0f84a4ef05a 100644
--- a/app/views/notification_mailer/digest.text.erb
+++ b/app/views/notification_mailer/digest.text.erb
@@ -5,7 +5,7 @@
* <%= raw t('notification_mailer.digest.mention', name: notification.from_account.pretty_acct) %>
- <%= raw extract_plain_text(notification.target_status.text, notification.target_status.local?) %>
+ <%= raw extract_status_plain_text(notification.target_status) %>
<%= raw t('application_mailer.view')%> <%= web_url("statuses/#{notification.target_status.id}") %>
<% end %>