mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-22 17:27:18 +00:00
fix multi-after-transaction
This commit is contained in:
parent
7502da993b
commit
67f8bdce4f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue