Commit 01fd24ce authored by Evan Prodromou's avatar Evan Prodromou

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

parent bce337e7
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment