summaryrefslogtreecommitdiff
path: root/plugins/OStatus/OStatusPlugin.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-03 09:33:38 -0800
committerBrion Vibber <brion@pobox.com>2010-03-03 09:33:38 -0800
commit9801c60bea121f96d3e8d4ae7b8e31d2c29b280d (patch)
tree5aacecf46f564408fad70a38ce2461e6d7b96c48 /plugins/OStatus/OStatusPlugin.php
parent1e63fda6695c8ab06f2cd8181de26f03f7f7a5d4 (diff)
parent11750e832f994013b2fbce860bd24d24f49a14db (diff)
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'plugins/OStatus/OStatusPlugin.php')
-rw-r--r--plugins/OStatus/OStatusPlugin.php24
1 files changed, 22 insertions, 2 deletions
diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php
index f435d6283..95414e517 100644
--- a/plugins/OStatus/OStatusPlugin.php
+++ b/plugins/OStatus/OStatusPlugin.php
@@ -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.
*
@@ -711,7 +731,7 @@ class OStatusPlugin extends Plugin
return true;
}
- function onStartShowAllContent($action)
+ function onEndShowSubscriptionsMiniList($action)
{
$this->showEntityRemoteSubscribe($action);
@@ -727,7 +747,7 @@ class OStatusPlugin extends Plugin
'class' => 'entity_subscribe'));
$action->element('a', array('href' => common_local_url('ostatussub'),
'class' => 'entity_remote_subscribe')
- , _m('Subscribe to remote user'));
+ , _m('New'));
$action->elementEnd('p');
$action->elementEnd('div');
}