Minor Ostatus_profile class reference fixes
This commit is contained in:
parent
20bd0c1136
commit
603d2d3891
@ -941,7 +941,7 @@ class Ostatus_profile extends Managed_DataObject
|
|||||||
|
|
||||||
// Is the recipient a remote user or group?
|
// Is the recipient a remote user or group?
|
||||||
try {
|
try {
|
||||||
$oprofile = Ostatus_profile::ensureProfileURI($recipient);
|
$oprofile = self::ensureProfileURI($recipient);
|
||||||
if ($oprofile->isGroup()) {
|
if ($oprofile->isGroup()) {
|
||||||
// Deliver to local members of this remote group.
|
// Deliver to local members of this remote group.
|
||||||
// @todo FIXME: Sender verification?
|
// @todo FIXME: Sender verification?
|
||||||
@ -2087,7 +2087,7 @@ class Ostatus_profile extends Managed_DataObject
|
|||||||
|
|
||||||
// If unfound, do discovery stuff
|
// If unfound, do discovery stuff
|
||||||
|
|
||||||
if (empty($oprofile)) {
|
if (!$oprofile instanceof Ostatus_profile) {
|
||||||
if (preg_match("/^(\w+)\:(.*)/", $uri, $match)) {
|
if (preg_match("/^(\w+)\:(.*)/", $uri, $match)) {
|
||||||
$protocol = $match[1];
|
$protocol = $match[1];
|
||||||
switch ($protocol) {
|
switch ($protocol) {
|
||||||
|
Loading…
Reference in New Issue
Block a user