Skip to content

Commit

Permalink
Also sort by getlastmodified when searching for photos
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
  • Loading branch information
artonge authored and nextcloud-command committed Jan 2, 2024
1 parent d84be2a commit fa518b3
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 fa518b3

Please # to comment.