]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Notice.php
Use canonical object type in Notice title as ActivityObject
[quix0rs-gnu-social.git] / classes / Notice.php
index cbc0def7642a51377bbfe5444838201605893a6e..55af2d1b6ed90d8eb9477d11dd2bbceadbcdb2a1 100644 (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();