mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-20 06:37:59 +01:00
fix gallery navigation again
This commit is contained in:
parent
f443aa5386
commit
54ed9b5c43
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue