]> cat aescling's git repositories - mastodon.git/commitdiff
Fix #168 - Turn off e-mail notifications by default
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 23 Nov 2016 07:39:04 +0000 (08:39 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 23 Nov 2016 07:39:04 +0000 (08:39 +0100)
app/models/user.rb

index 7e3547dff27ff80bb960d4ed363a3be78c133e4d..366172e9a09cbf9eeb1936f97b6297e6fb019bda 100644 (file)
@@ -14,7 +14,7 @@ class User < ApplicationRecord
   scope :admins,   -> { where(admin: true) }
 
   has_settings do |s|
-    s.key :notification_emails, defaults: { follow: true, reblog: true, favourite: true, mention: true }
+    s.key :notification_emails, defaults: { follow: false, reblog: false, favourite: false, mention: false }
   end
 
   def send_devise_notification(notification, *args)