]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/finishremotesubscribe.php
remove 'nudge' -- it won't be in this release
[quix0rs-gnu-social.git] / actions / finishremotesubscribe.php
index bce2447ac7a256a05d53e3983582956da0989530..ae62fe4b32eabcff2d0463243ba075c379ce3855 100644 (file)
@@ -23,10 +23,6 @@ require_once(INSTALLDIR.'/lib/omb.php');
 
 class FinishremotesubscribeAction extends Action {
 
-       function is_readonly() {
-               return false;
-       }
-
        function handle($args) {
 
                parent::handle($args);
@@ -45,6 +41,8 @@ class FinishremotesubscribeAction extends Action {
 
                common_debug('stored request: '.print_r($omb,true), __FILE__);
 
+
+               common_remove_magic_from_request();
                $req = OAuthRequest::from_request();
 
                $token = $req->get_parameter('oauth_token');
@@ -185,6 +183,10 @@ class FinishremotesubscribeAction extends Action {
                        return;
                }
 
+               # Notify user, if necessary
+               
+               mail_subscribe_notify_profile($user, $profile);
+               
                # Clear the data
                unset($_SESSION['oauth_authorization_request']);
 
@@ -248,4 +250,4 @@ class FinishremotesubscribeAction extends Action {
 
                return array($return['oauth_token'], $return['oauth_token_secret']);
        }
-}
\ No newline at end of file
+}