sort user timeline by date (#3210)

This commit is contained in:
MeiMei 2018-11-13 01:17:59 +09:00 committed by syuilo
parent 50824a7245
commit 81805b01cc
7 changed files with 19 additions and 13 deletions

View file

@ -22,7 +22,8 @@ export default Vue.extend({
},
mounted() {
this.$root.api('users/notes', {
userId: this.user.id
userId: this.user.id,
untilDate: new Date().getTime() + 1000 * 86400 * 365
}).then(notes => {
this.notes = notes;
this.fetching = false;

View file

@ -29,7 +29,8 @@ export default Vue.extend({
this.$root.api('users/notes', {
userId: this.user.id,
withFiles: true,
limit: 6
limit: 6,
untilDate: new Date().getTime() + 1000 * 86400 * 365
}).then(notes => {
notes.forEach(note => {
note.media.forEach(media => {