1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 08:27:42 +02:00

Fix incorrect query parameter when searching for users

This commit is contained in:
Toby Zerner
2018-02-09 07:41:25 +10:30
parent c25b8e1510
commit 11292223a7
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);