]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use last comment's time for pagination
authorVincent Petry <pvince81@owncloud.com>
Thu, 28 Jan 2016 13:26:07 +0000 (14:26 +0100)
committerVincent Petry <pvince81@owncloud.com>
Tue, 2 Feb 2016 17:01:15 +0000 (18:01 +0100)
apps/comments/js/commentcollection.js

index 1fda4a4c709e713b8c68d8a3acd3d5d11a6e3948..eaa7a1d53faed9745f6fda49589794b78b61071e 100644 (file)
@@ -75,7 +75,7 @@
                                '   <oc:limit>' + this._limit + '</oc:limit>\n';
 
                        if (this.length > 0) {
-                               body += '   <oc:datetime>' + this.first().get('creationDateTime') + '</oc:datetime>\n';
+                               body += '   <oc:datetime>' + this.last().get('creationDateTime') + '</oc:datetime>\n';
                        }
 
                        body += '</D:report>\n';