From 6ef394a02404e2bcdb001dec3c2068d2c80672bb Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 28 May 2020 21:04:35 -0400 Subject: [PATCH] fix related images query --- lib/philomena_web/controllers/image/related_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/controllers/image/related_controller.ex b/lib/philomena_web/controllers/image/related_controller.ex index b7a9ba60..9cb3b3eb 100644 --- a/lib/philomena_web/controllers/image/related_controller.ex +++ b/lib/philomena_web/controllers/image/related_controller.ex @@ -54,7 +54,7 @@ defmodule PhilomenaWeb.Image.RelatedController do ImageLoader.query( conn, query, - sorts: [%{_score: :desc}], + sorts: &%{query: &1, sorts: [%{_score: :desc}]}, pagination: %{conn.assigns.image_pagination | page_number: 1} )