]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
normalizing acct: URI just to be sure
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 16 Nov 2014 17:29:05 +0000 (18:29 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 16 Nov 2014 17:29:05 +0000 (18:29 +0100)
plugins/OStatus/classes/Ostatus_profile.php

index adc33263363ecaa651b74b6a87d759bdb604376f..d93d8968388edbc764b24487c5a36a76d67e4b67 100644 (file)
@@ -1922,7 +1922,7 @@ class Ostatus_profile extends Managed_DataObject
         }
 
         // Try looking it up
-        $oprofile = Ostatus_profile::getKV('uri', 'acct:'.$addr);
+        $oprofile = Ostatus_profile::getKV('uri', Discovery::normalize($addr));
 
         if ($oprofile instanceof Ostatus_profile) {
             self::cacheSet(sprintf('ostatus_profile:webfinger:%s', $addr), $oprofile->getUri());