aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2021-02-18 16:35:03 -0600
committerMark Felder <feld@feld.me>2021-02-18 16:35:03 -0600
commitd5ef02c7a7905dc2053298045873b365d2411cde (patch)
treebdfa1206dab9eb0c349c8d78510e9232a658f130 /lib/pleroma/web/api_spec
parentfb2a8e7ccd6cfbfb9bc226998a083405fcebcbe0 (diff)
downloadpleroma-d5ef02c7a7905dc2053298045873b365d2411cde.tar.gz
Mastodon makes this field null when posting with MastoFE or if you choose to not disclose it, so it's safe to be null by default
Diffstat (limited to 'lib/pleroma/web/api_spec')
-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",