123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class ApiUserFriendsAction extends ApiSubscriptionsAction
- {
-
- protected function getProfiles()
- {
- $offset = ($this->page - 1) * $this->count;
- $limit = $this->count + 1;
- $subs = null;
- if (isset($this->tag)) {
- $subs = $this->target->getTaggedSubscriptions(
- $this->tag, $offset, $limit
- );
- } else {
- $subs = $this->target->getSubscribed(
- $offset,
- $limit
- );
- }
- $profiles = array();
- while ($subs->fetch()) {
- $profiles[] = clone($subs);
- }
- return $profiles;
- }
- }
|