forked from GNUsocial/gnu-social
explicit join for subscribers to a profile list
This commit is contained in:
parent
f251c2e036
commit
a47c372ac4
@ -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"');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user