]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/subscriptionlist.php
Added more checked type-hints.
[quix0rs-gnu-social.git] / lib / subscriptionlist.php
index 36dcbf65f81227681a22ae875a9b9a4b8080c946..f882b90c7f30b6e76094521914986943626ebd40 100644 (file)
@@ -31,8 +31,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
     exit(1);
 }
 
-require_once INSTALLDIR.'/lib/profilelist.php';
-
 /**
  * Widget to show a list of subscriptions
  *
@@ -55,7 +53,7 @@ class SubscriptionList extends ProfileList
         $this->owner = $owner;
     }
 
-    function newListItem($profile)
+    function newListItem(Profile $profile)
     {
         return new SubscriptionListItem($profile, $this->owner, $this->action);
     }
@@ -76,16 +74,25 @@ class SubscriptionListItem extends ProfileListItem
     function showProfile()
     {
         $this->startProfile();
-        $this->showAvatar();
+        $this->showAvatar($this->profile);
+        $this->showNickname();
         $this->showFullName();
         $this->showLocation();
         $this->showHomepage();
         $this->showBio();
         // Relevant portion!
         $this->showTags();
+        if ($this->isOwn()) {
+            $this->showOwnerControls();
+        }
         $this->endProfile();
     }
 
+    function showOwnerControls()
+    {
+        // pass
+    }
+
     function isOwn()
     {
         $user = common_current_user();