diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php index a384cc75be..96931fec63 100644 --- a/actions/twitapistatuses.php +++ b/actions/twitapistatuses.php @@ -639,24 +639,26 @@ class TwitapistatusesAction extends TwitterapiAction { $user = $this->get_subs_user($apidata); # XXX: id - # XXX: page # XXX: lite + $page = $this->trimmed('page'); + + if (!$page || !is_numeric($page)) { + $page = 1; + } + $profile = $user->getProfile(); if (!$profile) { common_server_error(_('User has no profile.')); return; } - - if (!$page) { - $page = 1; - } $sub = new Subscription(); $sub->$user_attr = $profile->id; $sub->orderBy('created DESC'); - + $sub->limit(($page-1)*100, 100); + $others = array(); if ($sub->find()) {