ActivityObject uses Notice's object_type by default

This commit is contained in:
Evan Prodromou 2011-03-07 14:21:16 -05:00
parent 32f4daf44d
commit 6862f765f6

View File

@ -422,7 +422,7 @@ class ActivityObject
if (Event::handle('StartActivityObjectFromNotice', array($notice, &$object))) {
$object->type = ActivityObject::NOTE;
$object->type = (empty($notice->object_type)) ? ActivityObject::NOTE : $notice->object_type;
$object->id = $notice->uri;
$object->title = $notice->content;