We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d1d0c4 commit 3aedd22Copy full SHA for 3aedd22
1 file changed
lib/philomena_web/controllers/activity_controller.ex
@@ -40,6 +40,8 @@ defmodule PhilomenaWeb.ActivityController do
40
conn,
41
%{range: %{first_seen_at: %{gt: "now-3d"}}},
42
sorts: &%{query: &1, sorts: [%{wilson_score: :desc}, %{first_seen_at: :desc}]},
43
+ # FIXME: if there is very little activity for the last 3 days this may return
44
+ # no results as it may select the page number that doesn't exist.
45
pagination: %{page_number: :rand.uniform(6), page_size: 4}
46
)
47
0 commit comments