Set digest emails to false by default
authorRoman Chvanikov <chvanikoff@gmail.com>
Sun, 21 Apr 2019 09:36:25 +0000 (16:36 +0700)
committerRoman Chvanikov <chvanikoff@gmail.com>
Sun, 21 Apr 2019 09:36:25 +0000 (16:36 +0700)
lib/pleroma/user/info.ex
priv/repo/migrations/20190412052952_add_user_info_fields.exs

index 194dd55814eb6ad715be41c23614138cd797d3c7..d827293b8de6a3bdb44b479df09ebb854651e6d1 100644 (file)
@@ -42,7 +42,7 @@ defmodule Pleroma.User.Info do
     field(:hide_follows, :boolean, default: false)
     field(:pinned_activities, {:array, :string}, default: [])
     field(:flavour, :string, default: nil)
-    field(:email_notifications, :map, default: %{"digest" => true})
+    field(:email_notifications, :map, default: %{"digest" => false})
 
     field(:notification_settings, :map,
       default: %{"remote" => true, "local" => true, "followers" => true, "follows" => true}
index 203d0fc3b69f22998e1d26d4ad967d3279f1bd38..646c91f3229eb3c2d34d59edd7cdd8de2ebd8193 100644 (file)
@@ -6,7 +6,7 @@ defmodule Pleroma.Repo.Migrations.AddEmailNotificationsToUserInfo do
     UPDATE users
     SET info = info || '{
       \"email_notifications\": {
-        \"digest\": true
+        \"digest\": false
       }
     }'")
   end