Commit a591ab61 authored by kaniini's avatar kaniini
Browse files

activity pub: remove Ecto SQL query dumps

parent 71fa7eeb
Pipeline #11850 failed with stages
in 4 minutes and 15 seconds
......@@ -540,8 +540,6 @@ defp restrict_visibility(query, %{visibility: visibility})
)
)
Ecto.Adapters.SQL.to_sql(:all, Repo, query)
query
else
Logger.error("Could not restrict visibility to #{visibility}")
......@@ -557,8 +555,6 @@ defp restrict_visibility(query, %{visibility: visibility})
fragment("activity_visibility(?, ?, ?) = ?", a.actor, a.recipients, a.data, ^visibility)
)
Ecto.Adapters.SQL.to_sql(:all, Repo, query)
query
end
......@@ -576,8 +572,6 @@ defp restrict_thread_visibility(query, %{"user" => %User{ap_id: ap_id}}) do
where: fragment("thread_visibility(?, (?)->>'id') = true", ^ap_id, a.data)
)
Ecto.Adapters.SQL.to_sql(:all, Repo, query)
query
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment