]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/subscribers.php
subscribers list wasn't firing correct events
[quix0rs-gnu-social.git] / actions / subscribers.php
index cd3e2ee5bedd136190ddea88971c526345c98b73..4bced62840dcda4f3f8a28d591583b901729ccc1 100644 (file)
@@ -143,9 +143,12 @@ class SubscribersListItem extends SubscriptionListItem
     function showActions()
     {
         $this->startActions();
-        $this->showSubscribeButton();
-        // Relevant code!
-        $this->showBlockForm();
+        if (Event::handle('StartProfileListItemActionElements', array($this))) {
+            $this->showSubscribeButton();
+            // Relevant code!
+            $this->showBlockForm();
+            Event::handle('EndProfileListItemActionElements', array($this));
+        }
         $this->endActions();
     }