This commit is contained in:
syuilo
2017-12-21 02:20:02 +09:00
parent fb09710b62
commit c378e5fc94
24 changed files with 135 additions and 135 deletions

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -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
});
};

View File

@ -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;

View File

@ -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>