OStatus: fix regressions from merge
This commit is contained in:
parent
a3de4caf49
commit
5df61141d2
|
@ -319,7 +319,7 @@ class Ostatus_profile extends Memcached_DataObject
|
||||||
throw new ServerException("Invalid actor passed to " . __METHOD__ . ": " . $type);
|
throw new ServerException("Invalid actor passed to " . __METHOD__ . ": " . $type);
|
||||||
}
|
}
|
||||||
if ($object == null) {
|
if ($object == null) {
|
||||||
$object = $this->asActivityNoun('object');
|
$object = $this;
|
||||||
}
|
}
|
||||||
if ($this->salmonuri) {
|
if ($this->salmonuri) {
|
||||||
$text = 'update'; // @fixme
|
$text = 'update'; // @fixme
|
||||||
|
@ -345,7 +345,7 @@ class Ostatus_profile extends Memcached_DataObject
|
||||||
$entry->element('activity:verb', null, $verb);
|
$entry->element('activity:verb', null, $verb);
|
||||||
$entry->raw($actor->asAtomAuthor());
|
$entry->raw($actor->asAtomAuthor());
|
||||||
$entry->raw($actor->asActivityActor());
|
$entry->raw($actor->asActivityActor());
|
||||||
$entry->raw($object);
|
$entry->raw($object->asActivityNoun('object'));
|
||||||
$entry->elementEnd('entry');
|
$entry->elementEnd('entry');
|
||||||
|
|
||||||
$xml = $entry->getString();
|
$xml = $entry->getString();
|
||||||
|
|
|
@ -284,7 +284,7 @@ class ActivityObject
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static fromNotice($notice)
|
static function fromNotice($notice)
|
||||||
{
|
{
|
||||||
$object = new ActivityObject();
|
$object = new ActivityObject();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user