diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2018-11-13 01:17:59 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2018-11-13 01:17:59 +0900 |
| commit | 81805b01cc5c47d0b77e2a8f46351e7d33be40a3 (patch) | |
| tree | 55b6b700a0980185b875c546ffde6f24c1eb4b5e /src/client/app/mobile/views/components | |
| parent | 10.49.0 (diff) | |
| download | misskey-81805b01cc5c47d0b77e2a8f46351e7d33be40a3.tar.gz misskey-81805b01cc5c47d0b77e2a8f46351e7d33be40a3.tar.bz2 misskey-81805b01cc5c47d0b77e2a8f46351e7d33be40a3.zip | |
sort user timeline by date (#3210)
Diffstat (limited to 'src/client/app/mobile/views/components')
| -rw-r--r-- | src/client/app/mobile/views/components/user-timeline.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/app/mobile/views/components/user-timeline.vue b/src/client/app/mobile/views/components/user-timeline.vue index 6773b75763..e8d7adc8b5 100644 --- a/src/client/app/mobile/views/components/user-timeline.vue +++ b/src/client/app/mobile/views/components/user-timeline.vue @@ -44,7 +44,8 @@ export default Vue.extend({ this.$root.api('users/notes', { userId: this.user.id, withFiles: this.withMedia, - limit: fetchLimit + 1 + limit: fetchLimit + 1, + untilDate: new Date().getTime() + 1000 * 86400 * 365 }).then(notes => { if (notes.length == fetchLimit + 1) { notes.pop(); @@ -66,7 +67,7 @@ export default Vue.extend({ userId: this.user.id, withFiles: this.withMedia, limit: fetchLimit + 1, - untilId: (this.$refs.timeline as any).tail().id + untilDate: new Date((this.$refs.timeline as any).tail().createdAt).getTime() }); promise.then(notes => { |