]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
bugs in function calls in Notice::asActivity
authorEvan Prodromou <evan@status.net>
Mon, 13 Sep 2010 20:27:02 +0000 (16:27 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 13 Sep 2010 20:27:02 +0000 (16:27 -0400)
classes/Notice.php

index 9a6f180e569e9bff38c73f5ebb9d1a50c5f0302a..0539ca3b1d14215503e0ecf6036ed53cbeefe264 100644 (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();