1
0
Fork 0
forked from mirrors/akkoma

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

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