activity pub: remove Ecto SQL query dumps
authorWilliam Pitcock <nenolod@dereferenced.org>
Wed, 15 May 2019 16:56:46 +0000 (16:56 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Wed, 15 May 2019 16:56:46 +0000 (16:56 +0000)
lib/pleroma/web/activity_pub/activity_pub.ex

index e544d0c50eb2aaf1a90e183bdf6935b241a7fd5f..7cd5b889b895332297faafc12766e127039551b4 100644 (file)
@@ -540,8 +540,6 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
             )
         )
 
-      Ecto.Adapters.SQL.to_sql(:all, Repo, query)
-
       query
     else
       Logger.error("Could not restrict visibility to #{visibility}")
@@ -557,8 +555,6 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
           fragment("activity_visibility(?, ?, ?) = ?", a.actor, a.recipients, a.data, ^visibility)
       )
 
-    Ecto.Adapters.SQL.to_sql(:all, Repo, query)
-
     query
   end
 
@@ -576,8 +572,6 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
         where: fragment("thread_visibility(?, (?)->>'id') = true", ^ap_id, a.data)
       )
 
-    Ecto.Adapters.SQL.to_sql(:all, Repo, query)
-
     query
   end