]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Profile uses joinAdd() with explicit arguments
authorEvan Prodromou <evan@status.net>
Fri, 26 Aug 2011 15:48:40 +0000 (11:48 -0400)
committerEvan Prodromou <evan@status.net>
Fri, 26 Aug 2011 15:48:40 +0000 (11:48 -0400)
classes/Profile.php

index bcbb406ae01599df559cacb6be0a3ed328e59490..228a0ae2028fc0a61b1d0a55f98420a496ad1b20 100644 (file)
@@ -435,6 +435,7 @@ class Profile extends Managed_DataObject
         $tags->tagged = $this->id;
 
         $lists->joinAdd($tags);
+
         #@fixme: postgres (round(date_part('epoch', my_date)))
         $lists->selectAdd('unix_timestamp(profile_tag.modified) as "cursor"');
 
@@ -507,7 +508,8 @@ class Profile extends Managed_DataObject
         $lists = new Profile_list();
         $subs = new Profile_tag_subscription();
 
-        $lists->joinAdd($subs);
+        $lists->joinAdd('id', 'profile_tag_subscription:profile_tag_id');
+
         #@fixme: postgres (round(date_part('epoch', my_date)))
         $lists->selectAdd('unix_timestamp(profile_tag_subscription.created) as "cursor"');