Use canonical object type in Notice title as ActivityObject
This commit is contained in:
parent
0e8148af86
commit
42e2232371
|
@ -1988,7 +1988,7 @@ class Notice extends Managed_DataObject
|
||||||
if (Event::handle('StartActivityObjectFromNotice', array($this, &$object))) {
|
if (Event::handle('StartActivityObjectFromNotice', array($this, &$object))) {
|
||||||
$object->type = $this->object_type ?: ActivityObject::NOTE;
|
$object->type = $this->object_type ?: ActivityObject::NOTE;
|
||||||
$object->id = $this->getUri();
|
$object->id = $this->getUri();
|
||||||
$object->title = sprintf('New %1$s by %2$s', $object->type, $this->getProfile()->getNickname());
|
$object->title = sprintf('New %1$s by %2$s', ActivityObject::canonicalType($object->type), $this->getProfile()->getNickname());
|
||||||
$object->content = $this->rendered;
|
$object->content = $this->rendered;
|
||||||
$object->link = $this->getUrl();
|
$object->link = $this->getUrl();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user