Make joinAdd() explicit in OStatusPlugin::onStartProfileCompletionSearch()

This commit is contained in:
Evan Prodromou 2011-08-27 12:06:34 -04:00
parent bce337e7c3
commit 01fd24ce6a

View File

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