class FinishremotesubscribeAction extends Action {
- function is_readonly() {
- return false;
- }
-
function handle($args) {
parent::handle($args);
common_debug('stored request: '.print_r($omb,true), __FILE__);
+
+ common_remove_magic_from_request();
$req = OAuthRequest::from_request();
$token = $req->get_parameter('oauth_token');
return;
}
+ # Notify user, if necessary
+
+ mail_subscribe_notify_profile($user, $profile);
+
# Clear the data
unset($_SESSION['oauth_authorization_request']);
return array($return['oauth_token'], $return['oauth_token_secret']);
}
-}
\ No newline at end of file
+}