bugs in function calls in Notice::asActivity

This commit is contained in:
Evan Prodromou 2010-09-13 16:27:02 -04:00
parent d207f19d22
commit 9f4891568f
1 changed files with 3 additions and 3 deletions

View File

@ -1218,16 +1218,16 @@ class Notice extends Memcached_DataObject
$act = new Activity();
$act->actor = Activity::fromProfile($profile);
$act->actor = ActivityObject::fromProfile($profile);
$act->verb = ActivityVerb::POST;
$act->objects[] = ActivityObject::fromNotice($this);
$act->time = strtotime($this->created);
$act->link = $this->bestUrl();
$act->content = common_xml_safe_string($this->rendered);
$act->content = common_xml_safe_str($this->rendered);
$act->id = $this->uri;
$act->title = common_xml_safe_string($this->content);
$act->title = common_xml_safe_str($this->content);
$ctx = new ActivityContext();