forked from GNUsocial/gnu-social
ActivityObject uses Notice's object_type by default
This commit is contained in:
parent
32f4daf44d
commit
6862f765f6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user