Verified Commit 7d350b73 authored by Haelwenn's avatar Haelwenn
Browse files

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.
parent a0731088
Pipeline #36357 passed with stages
in 6 minutes and 36 seconds
......@@ -102,7 +102,7 @@ defmodule Pleroma.Web.Endpoint do
parsers: [
{:multipart, length: {Config, :get, [[:instance, :upload_limit]]}},
{:multipart, length: Config.get([:instance, :upload_limit])},
pass: ["*/*"],
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment