From 42e2232371ca152185d7e223ca5e5e8f80cd96c6 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 9 Jul 2014 13:35:52 +0200 Subject: [PATCH] Use canonical object type in Notice title as ActivityObject --- classes/Notice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5