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

index 88f2cc6f1888767d4fd8c987b40ff04e5d91deca..a5eb3e9e09f3940756e662b847a28eb96ebf5978 100644 (file)
@@ -76,7 +76,7 @@ defmodule Pleroma.Web.ControllerHelper do
     #  This is because we only have ids present inside of the page, while
     # `min_id`, `since_id` and `max_id` requires to know one outside of it.
     if Map.take(conn.params, @id_keys) != [] do
-      Map.put(fields, "id", current_url(conn, conn.params))
+      Map.put(fields, "id", current_url(conn))
     else
       fields
     end