Use canonical object type in Notice title as ActivityObject

This commit is contained in:
Mikael Nordfeldth 2014-07-09 13:35:52 +02:00
parent 0e8148af86
commit 42e2232371
1 changed files with 1 additions and 1 deletions

View File

@ -1988,7 +1988,7 @@ class Notice extends Managed_DataObject
if (Event::handle('StartActivityObjectFromNotice', array($this, &$object))) {
$object->type = $this->object_type ?: ActivityObject::NOTE;
$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->link = $this->getUrl();