From: Brion Vibber Date: Mon, 22 Feb 2010 06:00:13 +0000 (+0000) Subject: OStatus: fix remote subscription when putting webfinger address in the little box X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=17ed30dffc1c05259baf2f0387089547e39684d7;p=quix0rs-gnu-social.git OStatus: fix remote subscription when putting webfinger address in the little box --- diff --git a/plugins/OStatus/actions/ostatusinit.php b/plugins/OStatus/actions/ostatusinit.php index 4afde2c36e..abd8cb5419 100644 --- a/plugins/OStatus/actions/ostatusinit.php +++ b/plugins/OStatus/actions/ostatusinit.php @@ -119,7 +119,7 @@ class OStatusInitAction extends Action } else { $this->connectProfile($this->acct); } - } elseif (strpos('@', $this->acct) !== false) { + } elseif (strpos($this->acct, '@') !== false) { $this->connectWebfinger($this->acct); } } @@ -139,7 +139,7 @@ class OStatusInitAction extends Action $user = User::staticGet('nickname', $this->nickname); $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); }