summaryrefslogtreecommitdiff
path: root/actions/subscribed.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/subscribed.php')
-rw-r--r--actions/subscribed.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/actions/subscribed.php b/actions/subscribed.php
index e8df331ee..634ca4102 100644
--- a/actions/subscribed.php
+++ b/actions/subscribed.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 SubscribedAction extends Action {
# Who is subscribed to a given user?
@@ -47,6 +52,8 @@ class SubscribedAction extends Action {
$subs = DB_DataObject::factory('subscription');
$subs->subscribed = $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);