assert($this->isMyActivity($act));
$stored->object_type = ActivityUtils::resolveUri($act->objects[0]->type);
+ if (common_valid_http_url($act->objects[0]->link)) {
+ $stored->url = $act->objects[0]->link;
+ }
// We don't have to do just about anything for a new, remote notice since the fields
// are handled in the main Notice::saveActivity function. Such as content, attachments,
$object->type = $notice->object_type ?: ActivityObject::NOTE;
$object->id = $notice->getUri();
$object->title = sprintf('New %1$s by %2$s', ActivityObject::canonicalType($object->type), $notice->getProfile()->getNickname());
- $object->content = $notice->rendered;
+ $object->content = $notice->getRendered();
$object->link = $notice->getUrl();
$object->extra[] = array('status_net', array('notice_id' => $notice->getID()));
protected function showNoticeContent(Notice $stored, HTMLOutputter $out, Profile $scoped=null)
{
- $out->raw($stored->rendered);
+ $out->raw($stored->getRendered());
}
protected function getActionTitle(ManagedAction $action, $verb, Notice $target, Profile $scoped)
protected function doActionPost(ManagedAction $action, $verb, Notice $target, Profile $scoped)
{
- // handle repeat POST
+ // handle POST
}
protected function getActivityForm(ManagedAction $action, $verb, Notice $target, Profile $scoped)