From 171bedf24bca7bd195dd4a8ee79cb3f04e6de5d5 Mon Sep 17 00:00:00 2001 From: csarven Date: Thu, 20 Nov 2008 18:26:55 -0500 Subject: (Un)Subscribe form using ajaxForm() darcs-hash:20081120232655-eefa4-cf6a71e246828793d3bfa413db724ab33bc58bcf.gz --- actions/subscribe.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'actions/subscribe.php') 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 { -- cgit v1.2.3-54-g00ecf