]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
OStatus: fix remote subscription when putting webfinger address in the little box
authorBrion Vibber <brion@pobox.com>
Mon, 22 Feb 2010 06:00:13 +0000 (06:00 +0000)
committerBrion Vibber <brion@pobox.com>
Mon, 22 Feb 2010 06:00:13 +0000 (06:00 +0000)
plugins/OStatus/actions/ostatusinit.php

index 4afde2c36e31fc16d8d839e8bc19131bda017b34..abd8cb5419a81b323df83b3df7c5d970f3f17350 100644 (file)
@@ -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);
             }