Apply suggestion to lib/pleroma/web/controller_helper.ex
authorlain <lain@soykaf.club>
Wed, 10 Jun 2020 08:02:35 +0000 (08:02 +0000)
committerlain <lain@soykaf.club>
Wed, 10 Jun 2020 08:02:35 +0000 (08:02 +0000)
lib/pleroma/web/controller_helper.ex

index 6cb19d539fcfaa9b7ed4fa8eca3c0cb311b4ab09..b7971e94003e1eff977ca93887de53807b0c96ae 100644 (file)
@@ -63,7 +63,7 @@ defmodule Pleroma.Web.ControllerHelper do
       conn.params
       |> Map.drop(Map.keys(conn.path_params))
       |> Map.merge(extra_params)
-      |> Map.drop(Pagination.page_keys() -- ["limit", "order"])
+      |> Map.drop(@id_keys)
 
     fields = %{
       "next" => current_url(conn, Map.put(params, :max_id, max_id)),