summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-11-18 14:22:27 -0500
committerEvan Prodromou <evan@prodromou.name>2008-11-18 14:22:27 -0500
commit7877e86506877c92165602d322e587105ffe4b7d (patch)
treebbf14fed9d9fc8ef93ea4e534e265fc7da00b016
parenta179a816b589d8fc097c7fff068dbe5b053e9e27 (diff)
check URI before sending
darcs-hash:20081118192227-84dde-3318e91d2366f3cb70bc795e313072f8e81a190c.gz
-rw-r--r--actions/remotesubscribe.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php
index 2c932178f..0adcc0848 100644
--- a/actions/remotesubscribe.php
+++ b/actions/remotesubscribe.php
@@ -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);