projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e44e9d
)
Apply suggestion to lib/pleroma/web/controller_helper.ex
author
lain
<lain@soykaf.club>
Sat, 13 Jun 2020 10:37:15 +0000
(10:37 +0000)
committer
lain
<lain@soykaf.club>
Sat, 13 Jun 2020 10:37:15 +0000
(10:37 +0000)
lib/pleroma/web/controller_helper.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/controller_helper.ex
b/lib/pleroma/web/controller_helper.ex
index a5eb3e9e09f3940756e662b847a28eb96ebf5978..d5e9c33f553b035757c887c8edb3b8b72a5ed740 100644
(file)
--- a/
lib/pleroma/web/controller_helper.ex
+++ b/
lib/pleroma/web/controller_helper.ex
@@
-75,7
+75,7
@@
defmodule Pleroma.Web.ControllerHelper do
# instead of the `q.id > ^min_id` and `q.id < ^max_id`.
# 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
+ if Map.take(conn.params, @id_keys) !=
%{}
do
Map.put(fields, "id", current_url(conn))
else
fields