From: Mikael Nordfeldth Date: Wed, 9 Jul 2014 11:35:52 +0000 (+0200) Subject: Use canonical object type in Notice title as ActivityObject X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=42e2232371ca152185d7e223ca5e5e8f80cd96c6;p=quix0rs-gnu-social.git Use canonical object type in Notice title as ActivityObject --- diff --git a/classes/Notice.php b/classes/Notice.php index cbc0def764..55af2d1b6e 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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();