소스 검색

masto_fe_view: Remove @default_settings

frontends/logic-flow
Haelwenn (lanodan) Monnier 4 년 전
부모
커밋
4a6389316d
No known key found for this signature in database GPG 키 ID: D5B7A8E43C997DEE
1개의 변경된 파일1개의 추가작업 그리고 31개의 파일을 삭제
  1. +1
    -31
      lib/pleroma/web/views/masto_fe_view.ex

+ 1
- 31
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),


불러오는 중...
취소
저장