diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-07-27 17:59:13 +0200 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-07-27 17:59:13 +0200 |
commit | 4a6389316dac53c1ca2ec36d160690476d881185 (patch) | |
tree | 8eb046aec6ca072b828039112baaec69812bf511 | |
parent | 98f014d3be22bc74e22ed93677d4381e782f2a5a (diff) | |
download | pleroma-4a6389316dac53c1ca2ec36d160690476d881185.tar.gz |
masto_fe_view: Remove @default_settings
-rw-r--r-- | lib/pleroma/web/views/masto_fe_view.ex | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/lib/pleroma/web/views/masto_fe_view.ex b/lib/pleroma/web/views/masto_fe_view.ex index c3096006e..3b78629dc 100644 --- a/lib/pleroma/web/views/masto_fe_view.ex +++ b/lib/pleroma/web/views/masto_fe_view.ex @@ -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.settings || @default_settings, + settings: user.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), |