aboutsummaryrefslogtreecommitdiff
path: root/internal/gallery/query_photos.go
diff options
context:
space:
mode:
authorSaiyed Shizain <saiyedshizain@gmail.com>2026-08-26 16:59:34 +0530
committerGitHub <noreply@github.com>2026-08-26 16:59:34 +0530
commit7c346191ca616d5aef20147c46fd45ee856477aa (patch)
tree0535b1eae4cf0fa21d24e2ed3e7ab4875c0e70f6 /internal/gallery/query_photos.go
parent9b541ca2d0a639eebd9610fcd6385e841da68e0a (diff)
parentbd8fab9ace7444d1b97a6df7b2d81ef981808a05 (diff)
downloadgalleryd-7c346191ca616d5aef20147c46fd45ee856477aa.tar.xz
galleryd-7c346191ca616d5aef20147c46fd45ee856477aa.zip
Merge pull request #14 from RanXom/feat/api
Feat/api: add photo search by relative path
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...)