]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Minor Ostatus_profile class reference fixes
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 30 Oct 2013 13:14:02 +0000 (14:14 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 30 Oct 2013 13:14:02 +0000 (14:14 +0100)
plugins/OStatus/classes/Ostatus_profile.php

index 1e493236537f6bc6801135f8783fb09430c5bb35..95b3b652d16131b80c2f1ea3d3ff479810d1c942 100644 (file)
@@ -941,7 +941,7 @@ class Ostatus_profile extends Managed_DataObject
 
             // Is the recipient a remote user or group?
             try {
-                $oprofile = Ostatus_profile::ensureProfileURI($recipient);
+                $oprofile = self::ensureProfileURI($recipient);
                 if ($oprofile->isGroup()) {
                     // Deliver to local members of this remote group.
                     // @todo FIXME: Sender verification?
@@ -2087,7 +2087,7 @@ class Ostatus_profile extends Managed_DataObject
 
         // If unfound, do discovery stuff
 
-        if (empty($oprofile)) {
+        if (!$oprofile instanceof Ostatus_profile) {
             if (preg_match("/^(\w+)\:(.*)/", $uri, $match)) {
                 $protocol = $match[1];
                 switch ($protocol) {