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 7d350b73f5.
This commit is contained in:
Haelwenn (lanodan) Monnier 2021-06-22 11:12:53 +02:00
commit a851a24036
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
3 changed files with 5 additions and 2 deletions

View file

@ -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: ["*/*"],