From 904bada39ec1a652136c0dfa35a0046f359ee704 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Wed, 1 Apr 2020 00:42:46 -0400 Subject: [PATCH] wilson --- lib/philomena_web/controllers/activity_controller.ex | 2 +- lib/philomena_web/templates/activity/index.html.slime | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena_web/controllers/activity_controller.ex b/lib/philomena_web/controllers/activity_controller.ex index 5f03f4af..4f13bf0d 100644 --- a/lib/philomena_web/controllers/activity_controller.ex +++ b/lib/philomena_web/controllers/activity_controller.ex @@ -31,7 +31,7 @@ defmodule PhilomenaWeb.ActivityController do ImageLoader.query( conn, %{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} ) diff --git a/lib/philomena_web/templates/activity/index.html.slime b/lib/philomena_web/templates/activity/index.html.slime index 20acaba4..28a8ddba 100644 --- a/lib/philomena_web/templates/activity/index.html.slime +++ b/lib/philomena_web/templates/activity/index.html.slime @@ -12,7 +12,7 @@ ' Issues? Want to chat? a href="/pages/contact" Contact us! .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 .block__content.flex.flex--centered.flex--wrap.image-flex-grid = for image <- @top_scoring do