- $doc = new ActivityStreamJSONDocument($this->auth_user);
- $doc->setTitle($title);
- $doc->addLink($link,'alternate', 'text/html');
+ $doc = new ActivityStreamJSONDocument($this->auth_user, $title);
+ $doc->addLink($link, 'alternate', 'text/html');