summaryrefslogtreecommitdiff
path: root/actions/subscriptions.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-21 15:29:12 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-21 15:29:12 -0400
commit4b96241acfee41e824af93315029e31e31559043 (patch)
tree86bbd5a9dff0edb9d6f7364e5fa11d66279ac5ca /actions/subscriptions.php
parent127bc561ffb31ba5fb2589945281f611f61e08a0 (diff)
define undefined, order subs
darcs-hash:20080521192912-84dde-4bea2a463bfb357b5688e0f8faccac622770ac95.gz
Diffstat (limited to 'actions/subscriptions.php')
-rw-r--r--actions/subscriptions.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/actions/subscriptions.php b/actions/subscriptions.php
index 3ec7a0122..51f35750c 100644
--- a/actions/subscriptions.php
+++ b/actions/subscriptions.php
@@ -19,6 +19,11 @@
if (!defined('LACONICA')) { exit(1); }
+# XXX: make distinct from similar definitions in showstream.php
+
+define('SUBSCRIPTIONS_PER_ROW', 10);
+define('SUBSCRIPTIONS_PER_PAGE', 80);
+
class SubscriptionsAction extends Action {
function handle($args) {
@@ -43,6 +48,8 @@ class SubscriptionsAction extends Action {
$subs = DB_DataObject::factory('subscription');
$subs->subscriber = $profile->id;
+ $subs->orderBy('created DESC');
+
# We ask for an extra one to know if we need to do another page
$subs->limit((($page-1)*SUBSCRIPTIONS_PER_PAGE), SUBSCRIPTIONS_PER_PAGE + 1);