Merge branch 'feature/relay-tests' into 'develop'
[akkoma] / lib / pleroma / web / activity_pub / activity_pub.ex
index 48ae36ebd58fb4802d30a9fd498f3d91e01a09ce..32c14995f3312ba4630eb777801fa210596710ad 100644 (file)
@@ -273,7 +273,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
       "to" => [user.follower_address, "https://www.w3.org/ns/activitystreams#Public"]
     }
 
-    with Object.delete(object),
+    with {:ok, _} <- Object.delete(object),
          {:ok, activity} <- insert(data, local),
          :ok <- maybe_federate(activity),
          {:ok, _actor} <- User.decrease_note_count(user) do