Minor Ostatus_profile class reference fixes

This commit is contained in:
Mikael Nordfeldth 2013-10-30 14:14:02 +01:00
parent 20bd0c1136
commit 603d2d3891

View 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) {