Merge branch 'fix/plug_parser_multipart' into 'develop'

web endpoint: Use Config.get directly instead of a tuple

See merge request pleroma/pleroma!3445
This commit is contained in:
feld 2021-06-07 19:58:37 +00:00
commit 64bc0c69ed
1 changed files with 1 additions and 1 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: ["*/*"],