From: Mikael Nordfeldth Date: Wed, 30 Oct 2013 13:14:02 +0000 (+0100) Subject: Minor Ostatus_profile class reference fixes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=603d2d3891d9e3a194417e587f251675e99ed6d8;p=quix0rs-gnu-social.git Minor Ostatus_profile class reference fixes --- diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php index 1e49323653..95b3b652d1 100644 --- a/plugins/OStatus/classes/Ostatus_profile.php +++ b/plugins/OStatus/classes/Ostatus_profile.php @@ -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) {