Skip to content

Commit

Permalink
Merge pull request #2226 from nextcloud/artonge/fix/search_on_files_w…
Browse files Browse the repository at this point in the history
…ithout_metadata

Also sort by getlastmodified when searching for photos
  • Loading branch information
artonge authored Jan 2, 2024
2 parents d84be2a + 0040f87 commit dd266f2
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 15 deletions.
4 changes: 2 additions & 2 deletions js/photos-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-main.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-public.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-public.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/services/PhotoSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ export default async function(path = '', options = {}) {
<d:prop><nc:metadata-photos-original_date_time/></d:prop>
<d:descending/>
</d:order>
<d:order>
<d:prop><d:getlastmodified/></d:prop>
<d:descending/>
</d:order>
</d:orderby>
<d:limit>
<d:nresults>${options.nbResults}</d:nresults>
Expand Down

0 comments on commit dd266f2

Please # to comment.