Merge remote-tracking branch 'remotes/origin/develop' into chore/elixir-1.11
[akkoma] / lib / pleroma / web / activity_pub / activity_pub_controller.ex
index c3fce711de6c97e15c2120bf4a9f842cc3504938..44f09be75fa9db3d7773d17a1a29e76a0c6cc9a0 100644 (file)
@@ -45,6 +45,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubController do
     when action in [:read_inbox, :update_outbox, :whoami, :upload_media]
   )
 
+  plug(Majic.Plug, [pool: Pleroma.MajicPool] when action in [:upload_media])
+
   plug(
     Pleroma.Web.Plugs.Cache,
     [query_params: false, tracking_fun: &__MODULE__.track_object_fetch/2]