fix multi-after-transaction
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Sun, 12 Dec 2021 19:40:05 +0000 (19:40 +0000)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Sun, 12 Dec 2021 19:40:05 +0000 (19:40 +0000)
lib/pleroma/web/activity_pub/side_effects.ex

index 913b664ca94c22ef99bfec70fc53bfeeda52f4ee..f87ee93cd94647b1fd8088c524dadf68afb6c42f 100644 (file)
@@ -536,7 +536,6 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
     |> Keyword.put(:notifications, notifications ++ existing)
   end
 
-  @impl true
   @impl true
   def handle_after_transaction(%{data: %{"type" => "Create"}} = activity) do
     Elasticsearch.put_by_id(activity.id)
@@ -547,6 +546,4 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
     |> send_notifications()
     |> send_streamables()
   end
-
-  def handle_after_transaction(_), do: :ok
 end