summaryrefslogtreecommitdiff
path: root/plugins/OStatus/OStatusPlugin.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-02-22 17:07:48 +0100
committerSarven Capadisli <csarven@status.net>2010-02-22 17:07:48 +0100
commit3569493ba7e77a1a9f19bdbbf3f2d5f262ea8484 (patch)
tree204724f69edfc8e811b75d3ae35417c51f00f5ef /plugins/OStatus/OStatusPlugin.php
parente6ce04cbce08b9f7d0d74f6fbf86e199af8b865d (diff)
Added link to Subscriptions page to XHR get the ostatus sub form
Diffstat (limited to 'plugins/OStatus/OStatusPlugin.php')
-rw-r--r--plugins/OStatus/OStatusPlugin.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php
index 3ac2bb87d..0b0317316 100644
--- a/plugins/OStatus/OStatusPlugin.php
+++ b/plugins/OStatus/OStatusPlugin.php
@@ -497,4 +497,21 @@ class OStatusPlugin extends Plugin
}
return true;
}
+
+ function onStartShowSubscriptionsContent($action)
+ {
+ $user = common_current_user();
+ if ($user && ($user->id == $action->profile->id)) {
+ $action->elementStart('div', 'entity_actions');
+ $action->elementStart('p', array('id' => 'entity_remote_subscribe',
+ 'class' => 'entity_subscribe'));
+ $action->element('a', array('href' => common_local_url('ostatussub'),
+ 'class' => 'entity_remote_subscribe')
+ , _m('Subscribe to remote user'));
+ $action->elementEnd('p');
+ $action->elementEnd('div');
+ }
+
+ return true;
+ }
}