summaryrefslogtreecommitdiff
path: root/plugins/OStatus
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-03-03 12:02:10 -0500
committerSarven Capadisli <csarven@status.net>2010-03-03 12:02:10 -0500
commit11750e832f994013b2fbce860bd24d24f49a14db (patch)
tree2ebe8031b6c5b9178b002f7d4a7bb92618df9e78 /plugins/OStatus
parentb65ee23e8293c301f8b142320eabff6c4acdfcfe (diff)
Added remote join action for group profile
Diffstat (limited to 'plugins/OStatus')
-rw-r--r--plugins/OStatus/OStatusPlugin.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php
index eb777c6b2..014fb0b38 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.
*