summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2021-06-04 19:57:48 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2021-06-04 20:04:30 +0200
commit7d350b73f58664eb822efaa5f522fcf2bd38f669 (patch)
treeaecec247924a0d980feb7b49f47e5c947a7317d2
parenta07310888fa3d46a36f3185ed09da7243921dad4 (diff)
web endpoint: Use Config.get directly instead of a tuple
Fixes a lot of warnings like the following while running the testsuite: warning: passing a {module, function, args} tuple to Plug.Parsers.MULTIPART is deprecated. Please see Plug.Parsers.MULTIPART module docs for better approaches to configuration This might mean no more dynamic configuration but there seems to be the same limitation two lines underneath anyway.
-rw-r--r--lib/pleroma/web/endpoint.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex
index 8e274de88..7591d0ae5 100644
--- a/lib/pleroma/web/endpoint.ex
+++ b/lib/pleroma/web/endpoint.ex
@@ -102,7 +102,7 @@ defmodule Pleroma.Web.Endpoint do
plug(Plug.Parsers,
parsers: [
:urlencoded,
- {:multipart, length: {Config, :get, [[:instance, :upload_limit]]}},
+ {:multipart, length: Config.get([:instance, :upload_limit])},
:json
],
pass: ["*/*"],