<?php
-
/**
* StatusNet, the distributed open-source microblogging tool
*
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
-
class ProfileList extends Widget
{
/** Current profile, profile query. */
$usf = new UnsubscribeForm($this->out, $this->profile);
$usf->show();
} else {
- // We can't initiate sub for a remote OMB profile.
- $remote = Remote_profile::staticGet('id', $this->profile->id);
- if (empty($remote)) {
+ if (Event::handle('StartShowProfileListSubscribeButton', array($this))) {
$sf = new SubscribeForm($this->out, $this->profile);
$sf->show();
+ Event::handle('EndShowProfileListSubscribeButton', array($this));
}
}
$this->out->elementEnd('li');