Commit Graph

13 Commits (8c8bee5a36e0cd0b5d35903f8891896447c3e060)

Author SHA1 Message Date
Matt Jankowski 7cfc078198
Fix rails mailer preview not honouring locale ()
Claire d6679d1751
Add mail headers to avoid auto-replies ()
Nick Schonning f0e1b12c10
Autofix Rubocop Style/ExplicitBlockArgument ()
Eugen Rochko cefa526c6d
Refactor formatter ()
* Refactor formatter

* Move custom emoji pre-rendering logic to view helpers

* Move more methods out of Formatter

* Fix code style issues

* Remove Formatter

* Add inline poll options to RSS feeds

* Remove unused helper method

* Fix code style issues

* Various fixes and improvements

* Fix test
ysksn bd4ee732c2 Remove MailerHelper does nothing ()
Eugen Rochko 79bc3d5845
Add direction tags to HTML e-mails for RTL languages ()
Eugen Rochko 5276c0a090
HTML e-mails for UserMailer ()
- premailer gem to turn CSS into inline styles automatically
- rework UserMailer templates
- reword UserMailer templates
Akihiko Odaki (@fn_aki@pawoo.net) 2083000027 Set default From address in config ()
The old implementation sets default From address in mailers. It sets
the address from SMTP_FROM_ADDRESS, or notifications@localhost. The
behavior is occasionally undesired results.

In production environment, notifications@localhost is likely to be
incorrect.
In testing environment, the email address should not be varied by a
environment variable.

After appling this change,

In production environment, it will throw an exception when launching
Mastodon.
In testing environment, the address will be fixed with
notifications@localhost.
Eugen Rochko 42b8220632 Fix - Send e-mail notifications to admins about new reports ()
Matt Jankowski 389f8f8249 Instance helper to replace site title helper ()
* Move site title helper to instance helper (name change only)

* Remove newline in <title> tag

* Add site_hostname helper method to wrap up local_domain value

* Use site_hostname helper in places that need local_domain value
Eugen Rochko 116ab27e08 i18n for devise mailer too
Eugen Rochko fdc17bea58 Fix rubocop issues, introduce usage of frozen literal to improve performance
Eugen Rochko 2b116131d7 Adding e-mail notifications about mentions, follows, favourites and reblogs. Fixing another mention recording bug