This commit is contained in:
byte[] 2020-04-01 00:42:46 -04:00
parent 8dae60de92
commit 904bada39e
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ defmodule PhilomenaWeb.ActivityController do
ImageLoader.query( ImageLoader.query(
conn, conn,
%{range: %{first_seen_at: %{gt: "now-3d"}}}, %{range: %{first_seen_at: %{gt: "now-3d"}}},
sorts: [%{score: :desc}, %{first_seen_at: :desc}], sorts: [%{wilson_score: :desc}, %{first_seen_at: :desc}],
pagination: %{page_number: :rand.uniform(6), page_size: 4} pagination: %{page_number: :rand.uniform(6), page_size: 4}
) )

View file

@ -12,7 +12,7 @@
' Issues? Want to chat? ' Issues? Want to chat?
a href="/pages/contact" Contact us! a href="/pages/contact" Contact us!
.block.hide-mobile .block.hide-mobile
a.block__header--single-item.center href="/search?q=first_seen_at.gt:3 days ago&sf=score&sd=desc" a.block__header--single-item.center href="/search?q=first_seen_at.gt:3 days ago&sf=wilson_score&sd=desc"
' Trending Images ' Trending Images
.block__content.flex.flex--centered.flex--wrap.image-flex-grid .block__content.flex.flex--centered.flex--wrap.image-flex-grid
= for image <- @top_scoring do = for image <- @top_scoring do