From 2b116131d78460e5cbb8eacc30aaaf04106ea0fa Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 19 Mar 2016 19:20:07 +0100 Subject: Adding e-mail notifications about mentions, follows, favourites and reblogs. Fixing another mention recording bug --- app/views/notification_mailer/favourite.text.erb | 5 +++++ app/views/notification_mailer/follow.text.erb | 5 +++++ app/views/notification_mailer/mention.text.erb | 7 +++++++ app/views/notification_mailer/reblog.text.erb | 5 +++++ 4 files changed, 22 insertions(+) create mode 100644 app/views/notification_mailer/favourite.text.erb create mode 100644 app/views/notification_mailer/follow.text.erb create mode 100644 app/views/notification_mailer/mention.text.erb create mode 100644 app/views/notification_mailer/reblog.text.erb (limited to 'app/views/notification_mailer') diff --git a/app/views/notification_mailer/favourite.text.erb b/app/views/notification_mailer/favourite.text.erb new file mode 100644 index 000000000..e8f7c1105 --- /dev/null +++ b/app/views/notification_mailer/favourite.text.erb @@ -0,0 +1,5 @@ +<%= display_name(@me) %>, + +Your status was favourited by <%= @account.acct %>: + +<%= account_stream_entry_url(@me, @status.stream_entry) %> diff --git a/app/views/notification_mailer/follow.text.erb b/app/views/notification_mailer/follow.text.erb new file mode 100644 index 000000000..6f70c0d90 --- /dev/null +++ b/app/views/notification_mailer/follow.text.erb @@ -0,0 +1,5 @@ +<%= display_name(@me) %>, + +<%= @account.acct %> is now following you! + +<%= url_for_target(@account) %> diff --git a/app/views/notification_mailer/mention.text.erb b/app/views/notification_mailer/mention.text.erb new file mode 100644 index 000000000..c12841e94 --- /dev/null +++ b/app/views/notification_mailer/mention.text.erb @@ -0,0 +1,7 @@ +<%= display_name(@me) %>, + +You were mentioned by <%= @status.account.acct %> in: + +<%= @status.content %> + +<%= url_for_target(@status) %> diff --git a/app/views/notification_mailer/reblog.text.erb b/app/views/notification_mailer/reblog.text.erb new file mode 100644 index 000000000..253b22c1e --- /dev/null +++ b/app/views/notification_mailer/reblog.text.erb @@ -0,0 +1,5 @@ +<%= display_name(@me) %>, + +Your status was reblogged by <%= @account.acct %>: + +<%= account_stream_entry_url(@me, @status.stream_entry) %> -- cgit