fixup activity serialization so salmon notifications work

This commit is contained in:
Evan Prodromou 2010-02-21 17:00:05 -05:00
parent 10f6c023f4
commit 1c22bf20f1
1 changed files with 2 additions and 2 deletions

View File

@ -392,7 +392,7 @@ class ActivityObject
if (!empty($this->content)) {
// XXX: assuming HTML content here
$xs->element(self::CONTENT, array('type' => 'html'), $this->content);
$xs->element(ActivityUtils::CONTENT, array('type' => 'html'), $this->content);
}
if (!empty($this->link)) {
@ -700,7 +700,7 @@ class Activity
// XXX: add context
// XXX: add target
$xs->raw($this->actor->asString());
$xs->raw($this->actor->asString('activity:actor'));
$xs->element('activity:verb', null, $this->verb);
$xs->raw($this->object->asString());