projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix buggos
[akkoma]
/
lib
/
pleroma
/
web
/
activity_pub
/
side_effects.ex
diff --git
a/lib/pleroma/web/activity_pub/side_effects.ex
b/lib/pleroma/web/activity_pub/side_effects.ex
index 19e833dec67fa65b48f6f123933a8669785eb953..91e9c72e03b408867cb3b3f995a6da57638f6aa0 100644
(file)
--- a/
lib/pleroma/web/activity_pub/side_effects.ex
+++ b/
lib/pleroma/web/activity_pub/side_effects.ex
@@
-537,10
+537,18
@@
defmodule Pleroma.Web.ActivityPub.SideEffects do
end
@impl true
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
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()
def handle_after_transaction(meta) do
meta
|> send_notifications()