aboutsummaryrefslogtreecommitdiff
path: root/internal/gallery/query_photos.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/gallery/query_photos.go')
-rw-r--r--internal/gallery/query_photos.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/gallery/query_photos.go b/internal/gallery/query_photos.go
index e024090..7b25250 100644
--- a/internal/gallery/query_photos.go
+++ b/internal/gallery/query_photos.go
@@ -4,6 +4,8 @@ func QueryPhotos(
photos []Photo,
query Query,
) []Photo {
+ photos = filterQueryPhotos(photos, query)
+
if query.Sort != "" {
photos = append([]Photo(nil), photos...)