summaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec/schemas/status.ex
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2021-02-28 16:17:34 +0000
committerlain <lain@soykaf.club>2021-02-28 16:17:34 +0000
commite6a14e1cd10a52450eaf3d1ba258eac4042d82a9 (patch)
tree79c9920f4b01dc45a7292efcdaf9e97c7391a373 /lib/pleroma/web/api_spec/schemas/status.ex
parentd0823d7f1e95c91a53545fae9299e5bcc6eaf758 (diff)
parent0faf8dbef8f0d77fdd42b36ade4d55c42f0ccc8c (diff)
Merge branch 'feat/client_app_details' into 'develop'
Support application field See merge request pleroma/pleroma!3311
Diffstat (limited to 'lib/pleroma/web/api_spec/schemas/status.ex')
-rw-r--r--lib/pleroma/web/api_spec/schemas/status.ex5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pleroma/web/api_spec/schemas/status.ex b/lib/pleroma/web/api_spec/schemas/status.ex
index 61ebd8089..42fa98718 100644
--- a/lib/pleroma/web/api_spec/schemas/status.ex
+++ b/lib/pleroma/web/api_spec/schemas/status.ex
@@ -23,9 +23,10 @@ defmodule Pleroma.Web.ApiSpec.Schemas.Status do
application: %Schema{
description: "The application used to post this status",
type: :object,
+ nullable: true,
properties: %{
name: %Schema{type: :string},
- website: %Schema{type: :string, nullable: true, format: :uri}
+ website: %Schema{type: :string, format: :uri}
}
},
bookmarked: %Schema{type: :boolean, description: "Have you bookmarked this status?"},
@@ -291,7 +292,7 @@ defmodule Pleroma.Web.ApiSpec.Schemas.Status do
"url" => "http://localhost:4001/users/nick6",
"username" => "nick6"
},
- "application" => %{"name" => "Web", "website" => nil},
+ "application" => nil,
"bookmarked" => false,
"card" => nil,
"content" => "foobar",