pages and limits
darcs-hash:20080718052557-84dde-65d7411377b866a66474584e90dc08ea3eb432b0.gz
This commit is contained in:
parent
0adb1f6970
commit
44dccacb1c
@ -639,9 +639,14 @@ 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) {
|
||||
@ -649,13 +654,10 @@ class TwitapistatusesAction extends TwitterapiAction {
|
||||
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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user