summaryrefslogtreecommitdiff
path: root/plugins/OStatus/OStatusPlugin.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-03-02 12:35:27 -0500
committerSarven Capadisli <csarven@status.net>2010-03-02 12:35:27 -0500
commit88c33bbb57433b3f10407f590b49d11ec4d5d530 (patch)
tree3fdb57b40d1eaf24d8c7d921f6a5f2f22b2965ac /plugins/OStatus/OStatusPlugin.php
parent5abff9104130ca6b49de6ab19f0359e888e1a085 (diff)
Showing remote subscription button on the personal timeline
Diffstat (limited to 'plugins/OStatus/OStatusPlugin.php')
-rw-r--r--plugins/OStatus/OStatusPlugin.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php
index 4ffbba45b..64504547f 100644
--- a/plugins/OStatus/OStatusPlugin.php
+++ b/plugins/OStatus/OStatusPlugin.php
@@ -721,6 +721,24 @@ class OStatusPlugin extends Plugin
return true;
}
+ function onStartShowAllContent($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;
+ }
+
+
/**
* Ping remote profiles with updates to this profile.
* Salmon pings are queued for background processing.