X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FProfile_list.php;h=27001978b6dd1ca9de26b02f67fdd9084aa97d8e;hb=5b2a85303a90faf6a309797d87ff0323420dd4c0;hp=50aa71f55dc0157875748fb04ee66bd2a7e761a4;hpb=01c2c31c1e701f6946282dfcc23502464483d12d;p=quix0rs-gnu-social.git diff --git a/classes/Profile_list.php b/classes/Profile_list.php index 50aa71f55d..27001978b6 100644 --- a/classes/Profile_list.php +++ b/classes/Profile_list.php @@ -220,10 +220,12 @@ 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_id') + ); + $subs->whereAdd('profile_tag_subscription.profile_tag_id = ' . $this->id); + $subs->selectAdd('unix_timestamp(profile_tag_subscription.' . 'created) as "cursor"');