From: Evan Prodromou Date: Fri, 30 May 2008 18:53:43 +0000 (-0400) Subject: check xrds object X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a0928778ba38cf724513c7b2ba2e529f33025ddb;p=quix0rs-gnu-social.git check xrds object darcs-hash:20080530185343-84dde-90c12188656a29b0f34d8ffa27927f0f664fbd74.gz --- diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php index 64b220383c..0db58ec9ca 100644 --- a/actions/remotesubscribe.php +++ b/actions/remotesubscribe.php @@ -85,6 +85,13 @@ class RemotesubscribeAction extends Action { return; } + if (!$yadis->xrds) { + $this->show_form(_t('Not a valid profile URL (no XRDS defined).')); + return; + } + + common_debug('remotesubscribe.php: XRDS is "'.print_r($yadis->xrds,TRUE).'"'); + $omb = $this->getOmb($yadis); if (!$omb) {