{:error, %{reason: err}} ->
Logger.error("Could not bulk put activity: #{err}")
:skipped
+
{:ok, %{body: body}} ->
IO.inspect(body)
:skipped
{:error, %{reason: err}} ->
Logger.error("Could not bulk put users: #{err}")
:skipped
+
{:ok, %{body: body}} ->
IO.inspect(body)
:skipped
{:error, %{reason: err}} ->
Logger.error("Could not bulk put hashtags: #{err}")
:skipped
+
{:ok, %{body: body}} ->
IO.inspect(body)
:skipped
Pleroma.Elasticsearch.put_by_id(:activity, activity.id)
end
- def handle_after_transaction(%Pleroma.Activity{data: %{"type" => "Delete", "deleted_activity_id" => id}}) do
+ def handle_after_transaction(%Pleroma.Activity{
+ data: %{"type" => "Delete", "deleted_activity_id" => id}
+ }) do
Pleroma.Elasticsearch.delete_by_id(:activity, id)
end