]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix some remote subscription regressions from f21f78364a9cbde2ca535a3983b384707ad097ae
authorBrion Vibber <brion@pobox.com>
Thu, 18 Mar 2010 20:13:57 +0000 (13:13 -0700)
committerBrion Vibber <brion@pobox.com>
Thu, 18 Mar 2010 20:13:57 +0000 (13:13 -0700)
Ostatus_profile::ensureProfile() has been renamed to Ostatus_profile::ensureProfileURL()

plugins/OStatus/OStatusPlugin.php
plugins/OStatus/classes/Ostatus_profile.php
plugins/OStatus/scripts/updateostatus.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());
index 73f5d23229c705df09405a8e34e25e3ad8e3d0c3..f8fda4162adf4e0ff08b560eefc9efef140346bc 100644 (file)
@@ -1464,7 +1464,7 @@ class Ostatus_profile extends Memcached_DataObject
         if (array_key_exists('profileurl', $hints)) {
             try {
                 common_log(LOG_INFO, "Discovery on acct:$addr with profile URL $profileUrl");
-                $oprofile = self::ensureProfile($hints['profileurl'], $hints);
+                $oprofile = self::ensureProfileURL($hints['profileurl'], $hints);
                 self::cacheSet(sprintf('ostatus_profile:webfinger:%s', $addr), $oprofile->uri);
                 return $oprofile;
             } catch (Exception $e) {
index 315b4927372f6fe842123be2f5b99ec051bcc65b..622ded56ab9044d9d708c97fa372f75d20d0c34f 100644 (file)
@@ -103,7 +103,7 @@ function updateOStatus($user)
                 echo "Checking {$rp->nickname}...";
             }
 
-            $op = Ostatus_profile::ensureProfile($rp->profileurl);
+            $op = Ostatus_profile::ensureProfileURL($rp->profileurl);
 
             if (empty($op)) {
                 echo "can't convert.\n";