Apply 3 suggestion(s) to 3 file(s)
This commit is contained in:
parent
b001237b79
commit
77bca41595
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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" => []
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue