1
0
Fork 0
forked from mirrors/akkoma

Apply 3 suggestion(s) to 3 file(s)

This commit is contained in:
feld 2020-10-14 19:33:54 +00:00
parent b001237b79
commit 77bca41595
3 changed files with 3 additions and 3 deletions

View file

@ -1232,7 +1232,7 @@ defp object_to_user_data(data) do
capabilities = data["capabilities"] || %{} capabilities = data["capabilities"] || %{}
accepts_chat_messages = capabilities["acceptsChatMessages"] accepts_chat_messages = capabilities["acceptsChatMessages"]
data = Transmogrifier.maybe_fix_user_object(data) data = Transmogrifier.maybe_fix_user_object(data)
is_discoverable = data["is_discoverable"] || false is_discoverable = data["discoverable"] || false
invisible = data["invisible"] || false invisible = data["invisible"] || false
actor_type = data["type"] || "Person" actor_type = data["type"] || "Person"

View file

@ -44,7 +44,7 @@ defmodule Pleroma.Web.ApiSpec.Schemas.Chat do
"sensitive" => false, "sensitive" => false,
"note" => "lain", "note" => "lain",
"pleroma" => %{ "pleroma" => %{
"is_discoverable" => false, "discoverable" => false,
"actor_type" => "Person" "actor_type" => "Person"
}, },
"fields" => [] "fields" => []

View file

@ -284,7 +284,7 @@ defmodule Pleroma.Web.ApiSpec.Schemas.Status do
"source" => %{ "source" => %{
"fields" => [], "fields" => [],
"note" => "Tester Number 6", "note" => "Tester Number 6",
"pleroma" => %{"actor_type" => "Person", "is_discoverable" => false}, "pleroma" => %{"actor_type" => "Person", "discoverable" => false},
"sensitive" => false "sensitive" => false
}, },
"statuses_count" => 1, "statuses_count" => 1,