diff options
| author | RanXom <saiyedshizain@gmail.com> | 2026-07-22 18:20:15 +0530 |
|---|---|---|
| committer | RanXom <saiyedshizain@gmail.com> | 2026-07-22 18:20:15 +0530 |
| commit | 8fb30a66a81a1f7150ebe86ed091e7c1651233a1 (patch) | |
| tree | f23eb6ebdb05a0bfe6e998df5803dd687c8eaa85 /internal/gallery/query_photos.go | |
| parent | a9150facac14799f4d188062c01b6ed353d82588 (diff) | |
| download | galleryd-8fb30a66a81a1f7150ebe86ed091e7c1651233a1.tar.xz galleryd-8fb30a66a81a1f7150ebe86ed091e7c1651233a1.zip | |
feat(gallery): filter photos by extension
Diffstat (limited to 'internal/gallery/query_photos.go')
| -rw-r--r-- | internal/gallery/query_photos.go | 2 |
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...) |