From 54ed9b5c4313a86474169feb0ff3b7ae1a8f79b5 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 26 Dec 2019 18:00:44 -0500 Subject: [PATCH] fix gallery navigation again --- lib/philomena/image_navigator.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena/image_navigator.ex b/lib/philomena/image_navigator.ex index 650c35b7..e30c040f 100644 --- a/lib/philomena/image_navigator.ex +++ b/lib/philomena/image_navigator.ex @@ -69,7 +69,7 @@ defmodule Philomena.ImageNavigator do defp extract_filters(%{"galleries.position" => term} = sort, image, rel) do # Extract gallery ID and current position - gid = term.nested_filter.term."galleries.id" + gid = term.nested.filter.term["galleries.id"] pos = Enum.find(image[:galleries], & &1.id == gid).position # Sort in the other direction if we are going backwards