var $profile;
var $err;
- function prepare($args)
+ function prepare(array $args = array())
{
parent::prepare($args);
if (common_logged_in()) {
// TRANS: Client error displayed when trying to list a local object as if it is remote.
$this->clientError(_m('You can use the local list functionality!'));
- return false;
}
$this->nickname = $this->trimmed('nickname');
// TRANS: Field label.
$this->input('profile', _m('Profile Account'), $this->profile,
// TRANS: Field title.
- _m('Your account id (for example user@identi.ca).'));
+ _m('Your account id (for example user@example.com).'));
$this->elementEnd('li');
$this->elementEnd('ul');
$this->submit('submit', $submit);
$link = $xrd->get('http://ostatus.org/schema/1.0/tag');
if (!is_null($link)) {
// We found a URL - let's redirect!
- $url = Discovery::applyTemplate($link->template, $target_profile);
+ if (!empty($link->template)) {
+ $url = Discovery::applyTemplate($link->template, $target_profile);
+ } else {
+ $url = $link->href;
+ }
common_log(LOG_INFO, "Sending remote subscriber $acct to $url");
common_redirect($url, 303);
}