]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/subscribers.php
Link rtsp, mms & tel URI schemes, correct pseudo-protocol ones.
[quix0rs-gnu-social.git] / actions / subscribers.php
index 408829b54528a09bf117b8590f1ada08fbc21bc0..22faafaef945293dbd0279b57f6ff87424028538 100644 (file)
@@ -72,14 +72,22 @@ class SubscribersAction extends GalleryAction
 
     function showContent()
     {
+        parent::showContent();
+
         $offset = ($this->page-1) * PROFILES_PER_PAGE;
         $limit =  PROFILES_PER_PAGE + 1;
 
-        $subscribers = $this->user->getSubscribers($offset, $limit);
+        $cnt = 0;
+
+        if ($this->tag) {
+            $subscribers = $this->user->getTaggedSubscribers($this->tag, $offset, $limit);
+        } else {
+            $subscribers = $this->user->getSubscribers($offset, $limit);
+        }
 
         if ($subscribers) {
             $subscribers_list = new SubscribersList($subscribers, $this->user, $this);
-            $subscribers_list->show();
+            $cnt = $subscribers_list->show();
         }
 
         $subscribers->free();
@@ -92,11 +100,16 @@ class SubscribersAction extends GalleryAction
 
 class SubscribersList extends ProfileList
 {
-    function showOwnerControls($profile)
+    function showBlockForm()
     {
-        $bf = new BlockForm($this->out, $profile,
+        $bf = new BlockForm($this->out, $this->profile,
                             array('action' => 'subscribers',
                                   'nickname' => $this->owner->nickname));
         $bf->show();
     }
+
+    function isReadOnly()
+    {
+        return true;
+    }
 }