Merge branch 'libmagic' into 'develop'
[akkoma] / lib / pleroma / web / pleroma_api / controllers / account_controller.ex
index 61f4a9bd9279abbe173b8c70a60f686d1af472ea..30cf835678ca592fe8d04bd723a80fbcff26ebec 100644 (file)
@@ -17,6 +17,11 @@ defmodule Pleroma.Web.PleromaAPI.AccountController do
 
   require Pleroma.Constants
 
+  plug(
+    Majic.Plug,
+    [pool: Pleroma.MajicPool] when action in [:update_avatar, :update_background, :update_banner]
+  )
+
   plug(
     OpenApiSpex.Plug.PutApiSpec,
     [module: Pleroma.Web.ApiSpec] when action == :confirmation_resend