Skip to content

Commit

Permalink
Fix incorrect query parameter when searching for users
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyzerner committed Feb 8, 2018
1 parent 2d05594 commit 703e68c
Show file tree
Hide file tree
Showing 2 changed files with 2 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 @@ -303,7 +303,7 @@ System.register('flarum/mentions/addComposerAutocomplete', ['flarum/extend', 'fl
searchTimeout = setTimeout(function () {
var typedLower = typed.toLowerCase();
if (searched.indexOf(typedLower) === -1) {
app.store.find('users', { q: typed, page: { limit: 5 } }).then(function () {
app.store.find('users', { filter: { q: typed }, page: { limit: 5 } }).then(function () {
if (dropdown.active) buildSuggestions();
});
searched.push(typedLower);
Expand Down
2 changes: 1 addition & 1 deletion js/forum/src/addComposerAutocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default function addComposerAutocomplete() {
searchTimeout = setTimeout(function() {
const typedLower = typed.toLowerCase();
if (searched.indexOf(typedLower) === -1) {
app.store.find('users', {q: typed, page: {limit: 5}}).then(() => {
app.store.find('users', {filter: {q: typed}, page: {limit: 5}}).then(() => {
if (dropdown.active) buildSuggestions();
});
searched.push(typedLower);
Expand Down

0 comments on commit 703e68c

Please sign in to comment.