logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 62322f71e2f2e607ee66a91a99e35eecbf89914d
parent ffee478ed0298f2cf29d4d51ed28105119552496
Author: Mark Felder <feld@feld.me>
Date:   Wed, 31 May 2023 16:22:40 -0400

Clean up Plug.Parsers.MULTIPART deprecation warnings

There is no need to the length setting to :multipart. The length setting is global for all of the parsers.

Diffstat:

Mlib/pleroma/web/endpoint.ex2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex @@ -116,7 +116,7 @@ defmodule Pleroma.Web.Endpoint do plug(Plug.Parsers, parsers: [ :urlencoded, - {:multipart, length: {Config, :get, [[:instance, :upload_limit]]}}, + :multipart, :json ], pass: ["*/*"],