description: "Sets the background image of the user.",
format: :binary
},
- is_discoverable: %Schema{
+ discoverable: %Schema{
allOf: [BooleanLike],
nullable: true,
description:
pleroma_settings_store: %{"pleroma-fe" => %{"key" => "val"}},
skip_thread_containment: false,
allow_following_move: false,
- is_discoverable: false,
+ discoverable: false,
actor_type: "Person"
}
}
"sensitive" => false,
"note" => "lain",
"pleroma" => %{
- "is_discoverable" => false,
+ "discoverable" => false,
"actor_type" => "Person"
},
"fields" => []
type: :object,
properties: %{
actor_type: ActorType,
- is_discoverable: %Schema{
+ discoverable: %Schema{
type: :boolean,
description:
"whether the user allows discovery of the account in search results and other services."
"note" => "foobar",
"pleroma" => %{
"actor_type" => "Person",
- "is_discoverable" => false,
+ "discoverable" => false,
"no_rich_text" => false,
"show_role" => true
},
end
test "updates the user's discoverable status", %{conn: conn} do
- assert %{"source" => %{"pleroma" => %{"is_discoverable" => true}}} =
+ assert %{"source" => %{"pleroma" => %{"discoverable" => true}}} =
conn
- |> patch("/api/v1/accounts/update_credentials", %{is_discoverable: "true"})
+ |> patch("/api/v1/accounts/update_credentials", %{discoverable: "true"})
|> json_response_and_validate_schema(:ok)
- assert %{"source" => %{"pleroma" => %{"is_discoverable" => false}}} =
+ assert %{"source" => %{"pleroma" => %{"discoverable" => false}}} =
conn
- |> patch("/api/v1/accounts/update_credentials", %{is_discoverable: "false"})
+ |> patch("/api/v1/accounts/update_credentials", %{discoverable: "false"})
|> json_response_and_validate_schema(:ok)
end