summaryrefslogtreecommitdiff
path: root/actions/subscribe.php
diff options
context:
space:
mode:
authorcsarven <csarven@controlyourself.ca>2008-11-20 18:26:55 -0500
committercsarven <csarven@controlyourself.ca>2008-11-20 18:26:55 -0500
commit171bedf24bca7bd195dd4a8ee79cb3f04e6de5d5 (patch)
treec4b84cffe4fcd70e7906d18cab288cc221e1019a /actions/subscribe.php
parent41f29ab662a5587b1505303ff6d39efb4b6b77c9 (diff)
(Un)Subscribe form using ajaxForm()
darcs-hash:20081120232655-eefa4-cf6a71e246828793d3bfa413db724ab33bc58bcf.gz
Diffstat (limited to 'actions/subscribe.php')
-rw-r--r--actions/subscribe.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/actions/subscribe.php b/actions/subscribe.php
index 10951dc3b..856586f87 100644
--- a/actions/subscribe.php
+++ b/actions/subscribe.php
@@ -54,13 +54,16 @@ class SubscribeAction extends Action {
return;
}
+ $cur = common_current_user();
+ $profile = Profile::staticGet('nickname', $other_nickname);
if ($this->boolean('ajax')) {
common_start_html('text/xml');
common_element_start('head');
common_element('title', null, _('Subscribed'));
common_element_end('head');
common_element_start('body');
- common_subscribe_response();
+ common_unsubscribe_form($profile);
+ common_profile_new_message_nudge($cur, $profile);
common_element_end('body');
common_element_end('html');
} else {