summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2021-06-22 11:12:53 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2021-06-22 11:19:13 +0200
commita851a24036e07db99f9d893ec9043f0d826ca877 (patch)
tree4c5398432fea7d4e4301943c4a257df2b6b15070 /lib
parenta8adc300d4cfc88ef19f1977e32068437ed4ad00 (diff)
Downgrade Plug to 1.10.x, revert upload_limit tuple to function change
This should fix setting the upload limit in the database as found in: https://queer.hacktivis.me/notice/A8XUZp74Cg7eYNEMxU This reverts commit 7d350b73f58664eb822efaa5f522fcf2bd38f669.
Diffstat (limited to 'lib')
-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 7591d0ae5..8e274de88 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: ["*/*"],