forked from GNUsocial/gnu-social
Make joinAdd() explicit in OStatusPlugin::onStartProfileCompletionSearch()
This commit is contained in:
parent
bce337e7c3
commit
01fd24ce6a
@ -350,8 +350,7 @@ class OStatusPlugin extends Plugin
|
||||
*/
|
||||
function onStartProfileCompletionSearch($action, $profile, $search_engine) {
|
||||
if ($action->field == 'uri') {
|
||||
$user = new User();
|
||||
$profile->joinAdd($user);
|
||||
$profile->joinAdd(array('id', 'user:id'));
|
||||
$profile->whereAdd('uri LIKE "%' . $profile->escape($q) . '%"');
|
||||
$profile->query();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user