This commit is contained in:
@ -254,7 +254,7 @@
|
||||
this.api('messaging/messages', {
|
||||
user_id: this.user.id,
|
||||
limit: max + 1,
|
||||
max_id: this.moreMessagesIsInStock ? this.messages[0].id : undefined
|
||||
until_id: this.moreMessagesIsInStock ? this.messages[0].id : undefined
|
||||
}).then(messages => {
|
||||
if (messages.length == max + 1) {
|
||||
this.moreMessagesIsInStock = true;
|
||||
|
@ -101,7 +101,7 @@
|
||||
});
|
||||
this.api('posts/mentions', {
|
||||
following: this.mode == 'following',
|
||||
max_id: this.refs.timeline.tail().id
|
||||
until_id: this.refs.timeline.tail().id
|
||||
}).then(posts => {
|
||||
this.update({
|
||||
moreLoading: false
|
||||
|
@ -86,7 +86,7 @@
|
||||
});
|
||||
|
||||
this.api('posts/timeline', {
|
||||
max_date: this.date ? this.date.getTime() : undefined
|
||||
until_date: this.date ? this.date.getTime() : undefined
|
||||
}).then(posts => {
|
||||
this.update({
|
||||
isLoading: false,
|
||||
@ -103,7 +103,7 @@
|
||||
moreLoading: true
|
||||
});
|
||||
this.api('posts/timeline', {
|
||||
max_id: this.refs.timeline.tail().id
|
||||
until_id: this.refs.timeline.tail().id
|
||||
}).then(posts => {
|
||||
this.update({
|
||||
moreLoading: false
|
||||
|
@ -283,7 +283,7 @@
|
||||
|
||||
this.api('i/notifications', {
|
||||
limit: max + 1,
|
||||
max_id: this.notifications[this.notifications.length - 1].id
|
||||
until_id: this.notifications[this.notifications.length - 1].id
|
||||
}).then(notifications => {
|
||||
if (notifications.length == max + 1) {
|
||||
this.moreNotifications = true;
|
||||
|
@ -96,7 +96,7 @@
|
||||
this.fetch = cb => {
|
||||
this.api('users/posts', {
|
||||
user_id: this.user.id,
|
||||
max_date: this.date ? this.date.getTime() : undefined,
|
||||
until_date: this.date ? this.date.getTime() : undefined,
|
||||
with_replies: this.mode == 'with-replies'
|
||||
}).then(posts => {
|
||||
this.update({
|
||||
@ -116,7 +116,7 @@
|
||||
this.api('users/posts', {
|
||||
user_id: this.user.id,
|
||||
with_replies: this.mode == 'with-replies',
|
||||
max_id: this.refs.timeline.tail().id
|
||||
until_id: this.refs.timeline.tail().id
|
||||
}).then(posts => {
|
||||
this.update({
|
||||
moreLoading: false
|
||||
|
@ -430,7 +430,7 @@
|
||||
this.api('drive/files', {
|
||||
folder_id: this.folder ? this.folder.id : null,
|
||||
limit: max + 1,
|
||||
max_id: this.files[this.files.length - 1].id
|
||||
until_id: this.files[this.files.length - 1].id
|
||||
}).then(files => {
|
||||
if (files.length == max + 1) {
|
||||
this.moreFiles = true;
|
||||
|
@ -47,7 +47,7 @@
|
||||
|
||||
this.more = () => {
|
||||
return this.api('posts/timeline', {
|
||||
max_id: this.refs.timeline.tail().id
|
||||
until_id: this.refs.timeline.tail().id
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -146,7 +146,7 @@
|
||||
|
||||
this.api('i/notifications', {
|
||||
limit: max + 1,
|
||||
max_id: this.notifications[this.notifications.length - 1].id
|
||||
until_id: this.notifications[this.notifications.length - 1].id
|
||||
}).then(notifications => {
|
||||
if (notifications.length == max + 1) {
|
||||
this.moreNotifications = true;
|
||||
|
@ -26,7 +26,7 @@
|
||||
return this.api('users/posts', {
|
||||
user_id: this.user.id,
|
||||
with_media: this.withMedia,
|
||||
max_id: this.refs.timeline.tail().id
|
||||
until_id: this.refs.timeline.tail().id
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user