summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-18 13:24:44 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-18 13:24:44 -0400
commitf341780e1ff56a02d3283a1fb380f4fa0ac34ae9 (patch)
tree9fd3b27795b75d0844b32f8b405de99db83f965a /actions
parent78ac9df2a626fe1da4f9d864ca17ae19ee6d1c75 (diff)
more subscriptions/subscribers changes
Showstream now shows subscriptions in reverse chron order, like the other pages. Added a callback method to figure out who the _other_ guy is in a subscription. Changed gallery page to be a UL of images. darcs-hash:20080618172444-84dde-b886f6f8170370ae1aaf2e7f996aff288a471145.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/showstream.php3
-rw-r--r--actions/subscribers.php4
-rw-r--r--actions/subscriptions.php4
3 files changed, 10 insertions, 1 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index f339e0898..d9637c377 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -204,7 +204,8 @@ class ShowstreamAction extends StreamAction {
$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(0, SUBSCRIPTIONS + 1);
diff --git a/actions/subscribers.php b/actions/subscribers.php
index f5548d653..de374d57a 100644
--- a/actions/subscribers.php
+++ b/actions/subscribers.php
@@ -43,4 +43,8 @@ class SubscribersAction extends GalleryAction {
function div_class() {
return 'subscribers';
}
+
+ function get_other(&$subs) {
+ return $subs->subscriber;
+ }
} \ No newline at end of file
diff --git a/actions/subscriptions.php b/actions/subscriptions.php
index aba974f6e..10aef54d8 100644
--- a/actions/subscriptions.php
+++ b/actions/subscriptions.php
@@ -43,4 +43,8 @@ class SubscriptionsAction extends GalleryAction {
function div_class() {
return 'subscriptions';
}
+
+ function get_other(&$subs) {
+ return $subs->subscribed;
+ }
} \ No newline at end of file