From 34a0525b672280eff763e827adc67134b847b131 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 26 Aug 2011 11:48:40 -0400 Subject: [PATCH] Profile uses joinAdd() with explicit arguments --- classes/Profile.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/Profile.php b/classes/Profile.php index bcbb406ae0..228a0ae202 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -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"');