Fix #1025
This commit is contained in:
@@ -19,11 +19,10 @@
|
||||
|
||||
this.mixin('api');
|
||||
|
||||
this.max = 30;
|
||||
this.limit = 30;
|
||||
this.offset = 0;
|
||||
|
||||
this.query = this.opts.query;
|
||||
this.withMedia = this.opts.withMedia;
|
||||
|
||||
this.init = new Promise((res, rej) => {
|
||||
this.api('posts/search', parse(this.query)).then(posts => {
|
||||
@@ -33,10 +32,9 @@
|
||||
});
|
||||
|
||||
this.more = () => {
|
||||
this.offset += this.max;
|
||||
return this.api('posts/search', {
|
||||
query: this.query,
|
||||
max: this.max,
|
||||
this.offset += this.limit;
|
||||
return this.api('posts/search', Object.assign({}, parse(this.query), {
|
||||
limit: this.limit,
|
||||
offset: this.offset
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user