* @link http://status.net/
*/
-if (!defined('STATUSNET')) {
- exit(1);
-}
-
-require_once INSTALLDIR . '/lib/apibareauth.php';
+if (!defined('GNUSOCIAL')) { exit(1); }
/**
* Ouputs the authenticating user's followers (subscribers), each with
*
* @return array Profiles
*/
- function getProfiles()
+ protected function getProfiles()
{
$offset = ($this->page - 1) * $this->count;
$limit = $this->count + 1;
$subs = null;
if (isset($this->tag)) {
- $subs = $this->user->getTaggedSubscribers(
+ $subs = $this->target->getTaggedSubscribers(
$this->tag, $offset, $limit
);
} else {
- $subs = $this->user->getSubscribers(
+ $subs = $this->target->getSubscribers(
$offset,
$limit
);
$profiles = array();
- if (!empty($subs)) {
- while ($subs->fetch()) {
- $profiles[] = clone($subs);
- }
+ while ($subs->fetch()) {
+ $profiles[] = clone($subs);
}
return $profiles;