fix gallery navigation again

This commit is contained in:
byte[] 2019-12-26 18:00:44 -05:00
parent f443aa5386
commit 54ed9b5c43

View file

@ -69,7 +69,7 @@ defmodule Philomena.ImageNavigator do
defp extract_filters(%{"galleries.position" => term} = sort, image, rel) do defp extract_filters(%{"galleries.position" => term} = sort, image, rel) do
# Extract gallery ID and current position # 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 pos = Enum.find(image[:galleries], & &1.id == gid).position
# Sort in the other direction if we are going backwards # Sort in the other direction if we are going backwards