]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
check URI before sending
authorEvan Prodromou <evan@prodromou.name>
Tue, 18 Nov 2008 19:22:27 +0000 (14:22 -0500)
committerEvan Prodromou <evan@prodromou.name>
Tue, 18 Nov 2008 19:22:27 +0000 (14:22 -0500)
darcs-hash:20081118192227-84dde-3318e91d2366f3cb70bc795e313072f8e81a190c.gz

actions/remotesubscribe.php

index 2c932178fa2576dd35ecdbb6917e5a39da5109bf..0adcc08481a30038f6d2c6ec139bce3350e22776 100644 (file)
@@ -136,6 +136,11 @@ class RemotesubscribeAction extends Action {
                        $this->show_form(_('That\'s a local profile! Login to subscribe.'));
                        return;
                }
+
+               if (User::staticGet('uri', omb_local_id($omb[OAUTH_ENDPOINT_REQUEST]))) {
+                       $this->show_form(_('That\'s a local profile! Login to subscribe.'));
+                       return;
+               }
                
                list($token, $secret) = $this->request_token($omb);