Skip to content

Commit 3aedd22

Browse files
committed
Add a FIXME about the pagination bug with low activity
1 parent 3d1d0c4 commit 3aedd22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/philomena_web/controllers/activity_controller.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ defmodule PhilomenaWeb.ActivityController do
4040
conn,
4141
%{range: %{first_seen_at: %{gt: "now-3d"}}},
4242
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.
4345
pagination: %{page_number: :rand.uniform(6), page_size: 4}
4446
)
4547

0 commit comments

Comments
 (0)