OStatus: fix remote subscription when putting webfinger address in the little box

This commit is contained in:
Brion Vibber 2010-02-22 06:00:13 +00:00
parent 891e002883
commit 17ed30dffc

View File

@ -119,7 +119,7 @@ class OStatusInitAction extends Action
} else { } else {
$this->connectProfile($this->acct); $this->connectProfile($this->acct);
} }
} elseif (strpos('@', $this->acct) !== false) { } elseif (strpos($this->acct, '@') !== false) {
$this->connectWebfinger($this->acct); $this->connectWebfinger($this->acct);
} }
} }
@ -139,7 +139,7 @@ class OStatusInitAction extends Action
$user = User::staticGet('nickname', $this->nickname); $user = User::staticGet('nickname', $this->nickname);
$target_profile = common_local_url('userbyid', array('id' => $user->id)); $target_profile = common_local_url('userbyid', array('id' => $user->id));
$url = $w->applyTemplate($link['template'], $feed_url); $url = $w->applyTemplate($link['template'], $target_profile);
common_redirect($url, 303); common_redirect($url, 303);
} }