aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2019-10-01 22:16:29 +0000
committerfeld <feld@feld.me>2019-10-01 22:16:29 +0000
commitaaafec7eb804484ffe445e836040061887773cb7 (patch)
treecbea2b187683a04471674541d158db58b38c08f5 /lib
parentee6da62cdb057ce7e18c4b22346a183cde63502c (diff)
parent1255ec888d5f1a186b499bf9e5c23c8c7332ed4d (diff)
downloadpleroma-aaafec7eb804484ffe445e836040061887773cb7.tar.gz
Merge branch 'feature/expose-attachment-size' into 'develop'
Add upload limits to /api/v1/instance See merge request pleroma/pleroma!1614
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex
index 80a7b5bef..33988bbbd 100644
--- a/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex
+++ b/lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex
@@ -51,7 +51,11 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
registrations: Pleroma.Config.get([:instance, :registrations_open]),
# Extra (not present in Mastodon):
max_toot_chars: Keyword.get(instance, :limit),
- poll_limits: Keyword.get(instance, :poll_limits)
+ poll_limits: Keyword.get(instance, :poll_limits),
+ upload_limit: Keyword.get(instance, :upload_limit),
+ avatar_upload_limit: Keyword.get(instance, :avatar_upload_limit),
+ background_upload_limit: Keyword.get(instance, :background_upload_limit),
+ banner_upload_limit: Keyword.get(instance, :banner_upload_limit)
}
json(conn, response)