diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2019-04-08 15:17:39 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-04-08 15:17:39 +0900 |
| commit | fceebf73884d72fa5b9d57b7d09c2fa73eb61af7 (patch) | |
| tree | 469df188e161bea1708e3f990bca88f0d212400b | |
| parent | Update README.md [AUTOGEN] (#4639) (diff) | |
| download | misskey-fceebf73884d72fa5b9d57b7d09c2fa73eb61af7.tar.gz misskey-fceebf73884d72fa5b9d57b7d09c2fa73eb61af7.tar.bz2 misskey-fceebf73884d72fa5b9d57b7d09c2fa73eb61af7.zip | |
Fix #4562 (#4563)
3 files changed, 6 insertions, 6 deletions
diff --git a/src/client/app/common/views/deck/deck.user-column.home.vue b/src/client/app/common/views/deck/deck.user-column.home.vue index 7a11be536b..ee24cad1c5 100644 --- a/src/client/app/common/views/deck/deck.user-column.home.vue +++ b/src/client/app/common/views/deck/deck.user-column.home.vue @@ -85,7 +85,7 @@ export default Vue.extend({ this.makePromise = cursor => this.$root.api('users/notes', { userId: this.user.id, limit: fetchLimit + 1, - untilId: cursor ? cursor : undefined, + untilDate: cursor ? cursor : new Date().getTime() + 1000 * 86400 * 365, withFiles: this.withFiles, includeMyRenotes: this.$store.state.settings.showMyRenotes, includeRenotedMyNotes: this.$store.state.settings.showRenotedMyNotes, @@ -95,7 +95,7 @@ export default Vue.extend({ notes.pop(); return { notes: notes, - cursor: notes[notes.length - 1].id + cursor: new Date(notes[notes.length - 1].createdAt).getTime() }; } else { return { diff --git a/src/client/app/desktop/views/home/user/user.timeline.vue b/src/client/app/desktop/views/home/user/user.timeline.vue index f5d14112db..4bdf4b6cdc 100644 --- a/src/client/app/desktop/views/home/user/user.timeline.vue +++ b/src/client/app/desktop/views/home/user/user.timeline.vue @@ -36,13 +36,13 @@ export default Vue.extend({ includeReplies: this.mode == 'with-replies', includeMyRenotes: this.mode != 'my-posts', withFiles: this.mode == 'with-media', - untilId: cursor ? cursor : undefined + untilDate: cursor ? cursor : new Date().getTime() + 1000 * 86400 * 365 }).then(notes => { if (notes.length == fetchLimit + 1) { notes.pop(); return { notes: notes, - cursor: notes[notes.length - 1].id + cursor: new Date(notes[notes.length - 1].createdAt).getTime() }; } else { return { diff --git a/src/client/app/mobile/views/components/user-timeline.vue b/src/client/app/mobile/views/components/user-timeline.vue index 1b73b5bc41..3ba4011c6c 100644 --- a/src/client/app/mobile/views/components/user-timeline.vue +++ b/src/client/app/mobile/views/components/user-timeline.vue @@ -21,13 +21,13 @@ export default Vue.extend({ userId: this.user.id, limit: fetchLimit + 1, withFiles: this.withMedia, - untilId: cursor ? cursor : undefined + untilDate: cursor ? cursor : new Date().getTime() + 1000 * 86400 * 365 }).then(notes => { if (notes.length == fetchLimit + 1) { notes.pop(); return { notes: notes, - cursor: notes[notes.length - 1].id + cursor: new Date(notes[notes.length - 1].createdAt).getTime() }; } else { return { |