mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-03 01:08:57 +09:00
Fix bug
This commit is contained in:
parent
9d8606bf42
commit
40ce8f9532
@ -88,7 +88,7 @@ export default Vue.extend({
|
|||||||
fetch(cb?) {
|
fetch(cb?) {
|
||||||
this.fetching = true;
|
this.fetching = true;
|
||||||
|
|
||||||
(this as any).api('notes/timeline', {
|
(this as any).api(this.endpoint, {
|
||||||
limit: 11,
|
limit: 11,
|
||||||
untilDate: this.date ? this.date.getTime() : undefined
|
untilDate: this.date ? this.date.getTime() : undefined
|
||||||
}).then(notes => {
|
}).then(notes => {
|
||||||
@ -106,7 +106,7 @@ export default Vue.extend({
|
|||||||
more() {
|
more() {
|
||||||
if (this.moreFetching || this.fetching || this.notes.length == 0 || !this.existMore) return;
|
if (this.moreFetching || this.fetching || this.notes.length == 0 || !this.existMore) return;
|
||||||
this.moreFetching = true;
|
this.moreFetching = true;
|
||||||
(this as any).api('notes/timeline', {
|
(this as any).api(this.endpoint, {
|
||||||
limit: 11,
|
limit: 11,
|
||||||
untilId: this.notes[this.notes.length - 1].id
|
untilId: this.notes[this.notes.length - 1].id
|
||||||
}).then(notes => {
|
}).then(notes => {
|
||||||
|
Loading…
Reference in New Issue
Block a user