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?
$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);
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) {
$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);