From: FloatingGhost Date: Thu, 30 Dec 2021 18:03:09 +0000 (+0000) Subject: format X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=3252ed0f544bf5e1cc6d3e09bfa1a4866889ec91;p=akkoma format --- diff --git a/lib/pleroma/elasticsearch/store.ex b/lib/pleroma/elasticsearch/store.ex index 01561a0df..648bf1642 100644 --- a/lib/pleroma/elasticsearch/store.ex +++ b/lib/pleroma/elasticsearch/store.ex @@ -129,6 +129,7 @@ defmodule Pleroma.Elasticsearch do {:error, %{reason: err}} -> Logger.error("Could not bulk put activity: #{err}") :skipped + {:ok, %{body: body}} -> IO.inspect(body) :skipped @@ -159,6 +160,7 @@ defmodule Pleroma.Elasticsearch do {:error, %{reason: err}} -> Logger.error("Could not bulk put users: #{err}") :skipped + {:ok, %{body: body}} -> IO.inspect(body) :skipped @@ -188,6 +190,7 @@ defmodule Pleroma.Elasticsearch do {:error, %{reason: err}} -> Logger.error("Could not bulk put hashtags: #{err}") :skipped + {:ok, %{body: body}} -> IO.inspect(body) :skipped diff --git a/lib/pleroma/web/activity_pub/side_effects.ex b/lib/pleroma/web/activity_pub/side_effects.ex index 212588a0b..9b17eba95 100644 --- a/lib/pleroma/web/activity_pub/side_effects.ex +++ b/lib/pleroma/web/activity_pub/side_effects.ex @@ -542,7 +542,9 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do 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