diff options
| author | Hunternif <hunternif@gmail.com> | 2019-05-08 00:40:43 +0700 |
|---|---|---|
| committer | Hunternif <hunternif@gmail.com> | 2019-05-08 00:54:20 +0700 |
| commit | 4e5a4dbc2cc8ca6f8b5ff8c4e3ceedda88e323c9 (patch) | |
| tree | f1602a57a9cdf3cc892d2f097e538af94ee644ae /client/js/models/post_list.js | |
| parent | 555a6ebdb7d25dadc476da6148b2529f32228580 (diff) | |
client: use cachenumber in random post button
Diffstat (limited to 'client/js/models/post_list.js')
| -rw-r--r-- | client/js/models/post_list.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/js/models/post_list.js b/client/js/models/post_list.js index e7f77ec..8024ae4 100644 --- a/client/js/models/post_list.js +++ b/client/js/models/post_list.js @@ -7,12 +7,13 @@ const AbstractList = require('./abstract_list.js'); const Post = require('./post.js'); class PostList extends AbstractList { - static getAround(id, searchQuery) { + static getAround(id, searchQuery, cachenumber) { return api.get( uri.formatApiLink( 'post', id, 'around', { query: PostList._decorateSearchQuery(searchQuery || ''), fields: 'id', + cachenumber: cachenumber, })); } |