]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
explicit join for subscribers to a profile list
authorEvan Prodromou <evan@status.net>
Fri, 26 Aug 2011 15:39:06 +0000 (11:39 -0400)
committerEvan Prodromou <evan@status.net>
Fri, 26 Aug 2011 15:39:06 +0000 (11:39 -0400)
classes/Profile_list.php

index 50aa71f55dc0157875748fb04ee66bd2a7e761a4..c433a53fee5d865edff350cb9e63739cbf8df8d7 100644 (file)
@@ -220,10 +220,9 @@ class Profile_list extends Managed_DataObject
     function getSubscribers($offset=0, $limit=null, $since=0, $upto=0)
     {
         $subs = new Profile();
-        $sub = new Profile_tag_subscription();
-        $sub->profile_tag_id = $this->id;
 
-        $subs->joinAdd($sub);
+        $subs->joinAdd(array('id', 'profile_tag_subscription:profile_tag_id'));
+
         $subs->selectAdd('unix_timestamp(profile_tag_subscription.' .
                          'created) as "cursor"');