fix buggos
[akkoma] / lib / pleroma / web / activity_pub / side_effects.ex
index 19e833dec67fa65b48f6f123933a8669785eb953..91e9c72e03b408867cb3b3f995a6da57638f6aa0 100644 (file)
@@ -537,10 +537,18 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
   end
 
   @impl true
-  def handle_after_transaction(%{data: %{"type" => "Create"}} = activity) do
+  def handle_after_transaction(%Pleroma.Activity{data: %{"type" => "Create"}} = activity) do
     Pleroma.Elasticsearch.put_by_id(activity.id)
   end
 
+  def handle_after_transaction(%Pleroma.Activity{}) do
+    :ok
+  end
+
+  def handle_after_transaction(%Pleroma.Object{}) do
+    :ok
+  end
+
   def handle_after_transaction(meta) do
     meta
     |> send_notifications()