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) {
|
function onStartProfileCompletionSearch($action, $profile, $search_engine) {
|
||||||
if ($action->field == 'uri') {
|
if ($action->field == 'uri') {
|
||||||
$user = new User();
|
$profile->joinAdd(array('id', 'user:id'));
|
||||||
$profile->joinAdd($user);
|
|
||||||
$profile->whereAdd('uri LIKE "%' . $profile->escape($q) . '%"');
|
$profile->whereAdd('uri LIKE "%' . $profile->escape($q) . '%"');
|
||||||
$profile->query();
|
$profile->query();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user