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:
@@ -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);
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user