with_pleroma_settings: true
}) do
data
- |> Kernel.put_in([:pleroma, :settings], info.pleroma_settings_store)
+ |> Kernel.put_in([:pleroma, :settings_store], info.pleroma_settings_store)
end
defp maybe_put_settings_store(data, _, _, _), do: data
result =
AccountView.render("account.json", %{user: user, for: user, with_pleroma_settings: true})
- assert result.pleroma.settings == %{:fe => "test"}
+ assert result.pleroma.settings_store == %{:fe => "test"}
result = AccountView.render("account.json", %{user: user, with_pleroma_settings: true})
- assert result.pleroma[:settings] == nil
+ assert result.pleroma[:settings_store] == nil
result = AccountView.render("account.json", %{user: user, for: user})
- assert result.pleroma[:settings] == nil
+ assert result.pleroma[:settings_store] == nil
end
end