Merge branch 'develop' into 'cleanup/masto_fe-default_settings'
authorlain <lain@soykaf.club>
Mon, 27 Jul 2020 16:35:47 +0000 (16:35 +0000)
committerlain <lain@soykaf.club>
Mon, 27 Jul 2020 16:35:47 +0000 (16:35 +0000)
# Conflicts:
#   lib/pleroma/web/views/masto_fe_view.ex

lib/pleroma/web/views/masto_fe_view.ex

index f739dacb61221722a3c53f744529fb9fa11d2a27..b1669d1986809d98b9985405f82e5e7f6ab021b7 100644 (file)
@@ -9,36 +9,6 @@ defmodule Pleroma.Web.MastoFEView do
   alias Pleroma.Web.MastodonAPI.AccountView
   alias Pleroma.Web.MastodonAPI.CustomEmojiView
 
-  @default_settings %{
-    onboarded: true,
-    home: %{
-      shows: %{
-        reblog: true,
-        reply: true
-      }
-    },
-    notifications: %{
-      alerts: %{
-        follow: true,
-        favourite: true,
-        reblog: true,
-        mention: true
-      },
-      shows: %{
-        follow: true,
-        favourite: true,
-        reblog: true,
-        mention: true
-      },
-      sounds: %{
-        follow: true,
-        favourite: true,
-        reblog: true,
-        mention: true
-      }
-    }
-  }
-
   def initial_state(token, user, custom_emojis) do
     limit = Config.get([:instance, :limit])
 
@@ -86,7 +56,7 @@ defmodule Pleroma.Web.MastoFEView do
           "video\/mp4"
         ]
       },
-      settings: user.mastofe_settings || @default_settings,
+      settings: user.mastofe_settings || %{},
       push_subscription: nil,
       accounts: %{user.id => render(AccountView, "show.json", user: user, for: user)},
       custom_emojis: render(CustomEmojiView, "index.json", custom_emojis: custom_emojis),