diff options
author | Roger Braun <rbraun@Bobble.local> | 2017-10-23 18:30:09 +0200 |
---|---|---|
committer | Roger Braun <rbraun@Bobble.local> | 2017-10-23 18:30:09 +0200 |
commit | 9f417fd5e9893b095041702a6bd0190c7f1d7f22 (patch) | |
tree | df87e159d5b6e49475909f75f8334c80c3f37f15 /lib/pleroma/web | |
parent | 5912dd0f5dfaecc3732d2174867490c5a6b88c11 (diff) | |
download | pleroma-9f417fd5e9893b095041702a6bd0190c7f1d7f22.tar.gz |
Speed up deletion and related queries.
Diffstat (limited to 'lib/pleroma/web')
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 31aa2c4f1..dcd27d04a 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -87,7 +87,6 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do } with Repo.delete(object), Repo.delete_all(Activity.all_non_create_by_object_ap_id_q(id)), - Repo.delete_all(Activity.all_by_object_ap_id_q(id)), {:ok, activity} <- insert(data, local), :ok <- maybe_federate(activity) do {:ok, activity} |