From 603d2d3891d9e3a194417e587f251675e99ed6d8 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 30 Oct 2013 14:14:02 +0100 Subject: [PATCH] Minor Ostatus_profile class reference fixes --- plugins/OStatus/classes/Ostatus_profile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {