]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
change profile URL ensure method for OStatus
authorEvan Prodromou <evan@status.net>
Thu, 18 Mar 2010 20:21:26 +0000 (15:21 -0500)
committerEvan Prodromou <evan@status.net>
Thu, 18 Mar 2010 20:21:26 +0000 (15:21 -0500)
plugins/OStatus/OStatusPlugin.php

index b472ae24207e35f4b558aba616c070787497c355..58f373e453fcbac25fa19bc7161c65214b20cf3b 100644 (file)
@@ -290,7 +290,7 @@ class OStatusPlugin extends Plugin
                     $url = "$scheme://$target";
                     $this->log(LOG_INFO, "Checking profile address '$url'");
                     try {
-                        $oprofile = Ostatus_profile::ensureProfile($url);
+                        $oprofile = Ostatus_profile::ensureProfileURL($url);
                         if ($oprofile && !$oprofile->isGroup()) {
                             $profile = $oprofile->localProfile();
                             $matches[$pos] = array('mentioned' => array($profile),
@@ -392,7 +392,7 @@ class OStatusPlugin extends Plugin
 
         foreach ($urls as $url) {
             try {
-                return Ostatus_profile::ensureProfile($url);
+                return Ostatus_profile::ensureProfileURL($url);
             } catch (Exception $e) {
                 common_log(LOG_ERR, 'Profile lookup failed for ' .
                                     $arg . ': ' . $e->getMessage());