X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fuserprofile.php;fp=lib%2Fuserprofile.php;h=43dfd05be5988e0d912af9f28124b5fa8b56da70;hb=fc19179bc54de1837bbc64f052a93628be9c6a3d;hp=07e5750852eaa77a8e86eafd73e939296dd71eb0;hpb=f3a82e787c70e8cf749c79f22fe37ce6c9c9d4d3;p=quix0rs-gnu-social.git diff --git a/lib/userprofile.php b/lib/userprofile.php index 07e5750852..43dfd05be5 100644 --- a/lib/userprofile.php +++ b/lib/userprofile.php @@ -238,9 +238,12 @@ class UserProfile extends Widget if (Event::handle('StartProfilePageActionsElements', array(&$this->out, $this->profile))) { if (empty($cur)) { // not logged in - $this->out->elementStart('li', 'entity_subscribe'); - $this->showRemoteSubscribeLink(); - $this->out->elementEnd('li'); + if (Event::handle('StartProfileRemoteSubscribe', array(&$this->out, $this->profile))) { + $this->out->elementStart('li', 'entity_subscribe'); + $this->showRemoteSubscribeLink(); + $this->out->elementEnd('li'); + Event::handle('EndProfileRemoteSubscribe', array(&$this->out, $this->profile)); + } } else { if ($cur->id == $this->profile->id) { // your own page $this->out->elementStart('li', 'entity_edit');