]> cat aescling's git repositories - mastodon.git/commitdiff
Strip out HTML in plain text notification e-mails. Oh, and fix #14
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 19 Mar 2016 18:34:31 +0000 (19:34 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 19 Mar 2016 18:34:31 +0000 (19:34 +0100)
app/views/notification_mailer/mention.text.erb

index c12841e94f90cdf5e03cd17124ca2725bbd79c95..b093f4ec022b1f202cd7dcb49e12d0468effc74f 100644 (file)
@@ -2,6 +2,6 @@
 
 You were mentioned by <%= @status.account.acct %> in:
 
-<%= @status.content %>
+<%= strip_tags(@status.content) %>
 
 <%= url_for_target(@status) %>