diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-02 15:37:35 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-02 15:37:35 +0200 |
commit | 31a0202546acb20094eb6367061e50f5525cc7ed (patch) | |
tree | 55a956b42082a594775197d7aa54a44ae300a3e3 | |
parent | 2d4f9ecebf286aa9868f00373294c5e68b6f4b93 (diff) |
Slightly improved e-mail notifications
-rw-r--r-- | app/views/notification_mailer/_status.text.erb | 3 | ||||
-rw-r--r-- | app/views/notification_mailer/favourite.text.erb | 2 | ||||
-rw-r--r-- | app/views/notification_mailer/mention.text.erb | 4 | ||||
-rw-r--r-- | app/views/notification_mailer/reblog.text.erb | 2 |
4 files changed, 6 insertions, 5 deletions
diff --git a/app/views/notification_mailer/_status.text.erb b/app/views/notification_mailer/_status.text.erb new file mode 100644 index 000000000..24c154364 --- /dev/null +++ b/app/views/notification_mailer/_status.text.erb @@ -0,0 +1,3 @@ +<%= strip_tags(@status.content) %> + +<%= TagManager.instance.url_for(@status) %> diff --git a/app/views/notification_mailer/favourite.text.erb b/app/views/notification_mailer/favourite.text.erb index e8f7c1105..1b6fa274c 100644 --- a/app/views/notification_mailer/favourite.text.erb +++ b/app/views/notification_mailer/favourite.text.erb @@ -2,4 +2,4 @@ Your status was favourited by <%= @account.acct %>: -<%= account_stream_entry_url(@me, @status.stream_entry) %> +<%= render partial: 'status' %> diff --git a/app/views/notification_mailer/mention.text.erb b/app/views/notification_mailer/mention.text.erb index f3582749d..72dc1b009 100644 --- a/app/views/notification_mailer/mention.text.erb +++ b/app/views/notification_mailer/mention.text.erb @@ -2,6 +2,4 @@ You were mentioned by <%= @status.account.acct %> in: -<%= strip_tags(@status.content) %> - -<%= TagManager.instance.url_for(@status) %> +<%= render partial: 'status' %> diff --git a/app/views/notification_mailer/reblog.text.erb b/app/views/notification_mailer/reblog.text.erb index 253b22c1e..2077e949e 100644 --- a/app/views/notification_mailer/reblog.text.erb +++ b/app/views/notification_mailer/reblog.text.erb @@ -2,4 +2,4 @@ Your status was reblogged by <%= @account.acct %>: -<%= account_stream_entry_url(@me, @status.stream_entry) %> +<%= render partial: 'status' %> |