projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fully reference es
[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 701181a1419e2f12bce3932fba3d0014832019da..19e833dec67fa65b48f6f123933a8669785eb953 100644
(file)
--- a/
lib/pleroma/web/activity_pub/side_effects.ex
+++ b/
lib/pleroma/web/activity_pub/side_effects.ex
@@
-537,6
+537,10
@@
defmodule Pleroma.Web.ActivityPub.SideEffects do
end
@impl true
+ def handle_after_transaction(%{data: %{"type" => "Create"}} = activity) do
+ Pleroma.Elasticsearch.put_by_id(activity.id)
+ end
+
def handle_after_transaction(meta) do
meta
|> send_notifications()