Fix MRF policies to also work with Update
[akkoma] / lib / pleroma / web / activity_pub / pipeline.ex
index 6831e963fee4131e4916cf51f62630f2d7086fa1..d4e5072874a24a8063b22f10c8d5a69a73512564 100644 (file)
@@ -27,7 +27,7 @@ defmodule Pleroma.Web.ActivityPub.Pipeline do
   def common_pipeline(object, meta) do
     case Repo.transaction(fn -> do_common_pipeline(object, meta) end, Utils.query_timeout()) do
       {:ok, {:ok, activity, meta}} ->
-        side_effects().handle_after_transaction(activity, meta)
+        side_effects().handle_after_transaction(meta)
         {:ok, activity, meta}
 
       {:ok, value} ->
@@ -76,7 +76,8 @@ defmodule Pleroma.Web.ActivityPub.Pipeline do
         {:ok, :not_federated}
       end
     else
-      _e -> {:error, :badarg}
+      _e ->
+        {:error, :badarg}
     end
   end
 end