Add configuration[statuses][characters_reserved_per_url] to /api/v2/instance
Fixes #3250
This commit is contained in:
parent
ffa6805c09
commit
3cad57bf48
|
@ -0,0 +1 @@
|
||||||
|
Add configuration[statuses][characters_reserved_per_url] to /api/v2/instance (https://docs.joinmastodon.org/entities/Instance/#characters_reserved_per_url)
|
|
@ -285,6 +285,11 @@ defp instance2 do
|
||||||
type: :object,
|
type: :object,
|
||||||
description: "A map with poll limits for local statuses",
|
description: "A map with poll limits for local statuses",
|
||||||
properties: %{
|
properties: %{
|
||||||
|
characters_reserved_per_url: %Schema{
|
||||||
|
type: :integer,
|
||||||
|
description:
|
||||||
|
"Each URL in a status will be assumed to be exactly this many characters."
|
||||||
|
},
|
||||||
max_characters: %Schema{
|
max_characters: %Schema{
|
||||||
type: :integer,
|
type: :integer,
|
||||||
description: "Posts character limit (CW/Subject included in the counter)"
|
description: "Posts character limit (CW/Subject included in the counter)"
|
||||||
|
|
|
@ -213,6 +213,7 @@ defp configuration do
|
||||||
|
|
||||||
defp configuration2 do
|
defp configuration2 do
|
||||||
configuration()
|
configuration()
|
||||||
|
|> put_in([:statuses, :characters_reserved_per_url], 0)
|
||||||
|> Map.merge(%{
|
|> Map.merge(%{
|
||||||
urls: %{
|
urls: %{
|
||||||
streaming: Pleroma.Web.Endpoint.websocket_url(),
|
streaming: Pleroma.Web.Endpoint.websocket_url(),
|
||||||
|
|
Loading…
Reference in New Issue