]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use canonical object type in Notice title as ActivityObject
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 9 Jul 2014 11:35:52 +0000 (13:35 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 9 Jul 2014 11:36:57 +0000 (13:36 +0200)
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();