]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Make joinAdd() explicit in OStatusPlugin::onStartProfileCompletionSearch()
authorEvan Prodromou <evan@status.net>
Sat, 27 Aug 2011 16:06:34 +0000 (12:06 -0400)
committerEvan Prodromou <evan@status.net>
Sat, 27 Aug 2011 16:06:34 +0000 (12:06 -0400)
plugins/OStatus/OStatusPlugin.php

index 1c99db870091e1dd55d47a1358ec59a71a0b2f46..360aaa0c0a3f25c3ddf3a3bf1dffb1ac66e3b960 100644 (file)
@@ -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();