summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/views/pages/deck
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2018-11-13 01:17:59 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2018-11-13 01:17:59 +0900
commit81805b01cc5c47d0b77e2a8f46351e7d33be40a3 (patch)
tree55b6b700a0980185b875c546ffde6f24c1eb4b5e /src/client/app/desktop/views/pages/deck
parent10.49.0 (diff)
downloadmisskey-81805b01cc5c47d0b77e2a8f46351e7d33be40a3.tar.gz
misskey-81805b01cc5c47d0b77e2a8f46351e7d33be40a3.tar.bz2
misskey-81805b01cc5c47d0b77e2a8f46351e7d33be40a3.zip
sort user timeline by date (#3210)
Diffstat (limited to 'src/client/app/desktop/views/pages/deck')
-rw-r--r--src/client/app/desktop/views/pages/deck/deck.user-column.vue6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/app/desktop/views/pages/deck/deck.user-column.vue b/src/client/app/desktop/views/pages/deck/deck.user-column.vue
index 3404280c81..53bb54b5a6 100644
--- a/src/client/app/desktop/views/pages/deck/deck.user-column.vue
+++ b/src/client/app/desktop/views/pages/deck/deck.user-column.vue
@@ -155,7 +155,8 @@ export default Vue.extend({
this.$root.api('users/notes', {
userId: this.user.id,
fileType: image,
- limit: 9
+ limit: 9,
+ untilDate: new Date().getTime() + 1000 * 86400 * 365
}).then(notes => {
notes.forEach(note => {
note.files.forEach(file => {
@@ -254,6 +255,7 @@ export default Vue.extend({
this.$root.api('users/notes', {
userId: this.user.id,
limit: fetchLimit + 1,
+ untilDate: new Date().getTime() + 1000 * 86400 * 365,
withFiles: this.withFiles,
includeMyRenotes: this.$store.state.settings.showMyRenotes,
includeRenotedMyNotes: this.$store.state.settings.showRenotedMyNotes,
@@ -274,7 +276,7 @@ export default Vue.extend({
const promise = this.$root.api('users/notes', {
userId: this.user.id,
limit: fetchLimit + 1,
- untilId: (this.$refs.timeline as any).tail().id,
+ untilDate: new Date((this.$refs.timeline as any).tail().createdAt).getTime(),
withFiles: this.withFiles,
includeMyRenotes: this.$store.state.settings.showMyRenotes,
includeRenotedMyNotes: this.$store.state.settings.showRenotedMyNotes,