Added remote join action for group profile

This commit is contained in:
Sarven Capadisli 2010-03-03 12:02:10 -05:00
parent b65ee23e82
commit 11750e832f
1 changed files with 20 additions and 0 deletions

View File

@ -210,6 +210,26 @@ class OStatusPlugin extends Plugin
return false;
}
function onStartGroupSubscribe($output, $group)
{
$cur = common_current_user();
if (empty($cur)) {
// Add an OStatus subscribe
$output->elementStart('li', 'entity_subscribe');
$url = common_local_url('ostatusinit',
array('nickname' => $group->nickname));
$output->element('a', array('href' => $url,
'class' => 'entity_remote_subscribe'),
_m('Join'));
$output->elementEnd('li');
}
return false;
}
/**
* Check if we've got remote replies to send via Salmon.
*