format
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Thu, 30 Dec 2021 18:03:09 +0000 (18:03 +0000)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Thu, 30 Dec 2021 18:05:44 +0000 (18:05 +0000)
lib/pleroma/elasticsearch/store.ex
lib/pleroma/web/activity_pub/side_effects.ex

index 01561a0df2606c70c55c4044fc26003ad5e4aa2e..648bf1642de40afcd1b562bd376351c30d57bc25 100644 (file)
@@ -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
index 212588a0bc3743d5de692c3ac42173d952ecd6ea..9b17eba953382a2d5d9c215900b4fab8d07240b7 100644 (file)
@@ -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