Skip to content

Commit

Permalink
fix profile author discussion list
Browse files Browse the repository at this point in the history
  • Loading branch information
jjandxa committed Oct 16, 2017
1 parent 0346d68 commit 518da04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/forum/dist/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ System.register('jjandxa/flarum-ext-chinese-search/main', ['flarum/components/Di
params.page = { offset: offset };
params.include = params.include.join(',');

if (params.filter.q !== undefined && params.filter.q.indexOf('is:') === -1 && params.filter.q.indexOf('tag:') === -1) {
if (params.filter.q !== undefined && params.filter.q.indexOf('is:') === -1 && params.filter.q.indexOf('tag:') === -1 && params.filter.q.indexOf('author:') === -1) {
return app.store.find('xun/discussions', params);
}
return app.store.find('discussions', params);
Expand Down
3 changes: 2 additions & 1 deletion js/forum/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ app.initializers.add('flarum-ext-chinese-search', function() {
params.include = params.include.join(',');

if (params.filter.q !== undefined && params.filter.q.indexOf('is:') === -1
&& params.filter.q.indexOf('tag:') === -1) {
&& params.filter.q.indexOf('tag:') === -1
&& params.filter.q.indexOf('author:') === -1) {
return app.store.find('xun/discussions', params);
}
return app.store.find('discussions', params);
Expand Down

0 comments on commit 518da04

Please sign in to comment.