From 67f8bdce4f63762b3fc6d81a91b52d408b42d417 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Sun, 12 Dec 2021 19:40:05 +0000 Subject: [PATCH] fix multi-after-transaction --- lib/pleroma/web/activity_pub/side_effects.ex | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/pleroma/web/activity_pub/side_effects.ex b/lib/pleroma/web/activity_pub/side_effects.ex index 913b664ca..f87ee93cd 100644 --- a/lib/pleroma/web/activity_pub/side_effects.ex +++ b/lib/pleroma/web/activity_pub/side_effects.ex @@ -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 -- 2.45.2