]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/profilelist.php
add block form to subscribers list and profile page
[quix0rs-gnu-social.git] / lib / profilelist.php
index 67be04e10a8268467b3eb54cb5f2c174c1b4cbad..7461f941547f938cd55a1805c3de8386875e15f3 100644 (file)
@@ -55,12 +55,11 @@ class ProfileList {
 
        function show() {
 
-               $this->profile = $this->profile;
-
                common_element_start('li', array('class' => 'profile_single',
                                                                                 'id' => 'profile-' . $this->profile->id));
 
                $user = common_current_user();
+
                if ($user && $user->id != $this->profile->id) {
                        # XXX: special-case for user looking at own
                        # subscriptions page
@@ -151,9 +150,19 @@ class ProfileList {
                        common_element_end('div');
                }
 
+        if ($user && $user->id == $this->owner->id) {
+            $this->show_owner_controls($profile);
+        }
+
                common_element_end('li');
        }
 
+    /* Override this in subclasses. */
+
+    function show_owner_controls($profile) {
+        return;
+    }
+
        function highlight($text) {
                return htmlspecialchars($text);
        }