Merge branch 'fix/credo-issues' into 'develop'
[akkoma] / lib / pleroma / plugs / uploaded_media.ex
index be53ac00cd7ae8a62e386a4584879b5fe19f6d76..13aa8641afcb2444d195ac87298d98fbb2c8f589 100644 (file)
@@ -23,7 +23,7 @@ defmodule Pleroma.Plugs.UploadedMedia do
     %{static_plug_opts: static_plug_opts}
   end
 
-  def call(conn = %{request_path: <<"/", @path, "/", file::binary>>}, opts) do
+  def call(%{request_path: <<"/", @path, "/", file::binary>>} = conn, opts) do
     config = Pleroma.Config.get([Pleroma.Upload])
 
     with uploader <- Keyword.fetch!(config, :uploader),