sort user timeline by date (#3210)
This commit is contained in:
parent
50824a7245
commit
81805b01cc
7 changed files with 19 additions and 13 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue