]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Some changes since getFancyName() is longer with full acct: URI
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 1 Mar 2016 23:13:28 +0000 (00:13 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 1 Mar 2016 23:13:28 +0000 (00:13 +0100)
plugins/ActivityModeration/classes/Deleted_notice.php
plugins/OStatus/OStatusPlugin.php

index 4ffc0c895fe804f3c9229f986ea6b990aa5dded0..05414caab2ee75327cbcd2f984a6039f6f931f94 100644 (file)
@@ -151,9 +151,11 @@ class Deleted_notice extends Managed_DataObject
         $actobj->title = ActivityUtils::verbToTitle($actobj->verb);
 
         $actor = $this->getActor();
+        // TRANS: Notice HTML content of a deleted notice. %1$s is the
+        // TRANS: actor's URL, %2$s its "fancy name" and %3$s the notice URI.
         $actobj->content = sprintf(_m('<a href="%1$s">%2$s</a> deleted notice {{%3$s}}.'),
                             htmlspecialchars($actor->getUrl()),
-                            htmlspecialchars($actor->getBestName()),
+                            htmlspecialchars($actor->getFancyName()),
                             htmlspecialchars($this->getUri())
                            );
 
index 292af658ed9a98b5c411ef0eb9f029866c72ff78..d702703c81afb30df2e8d0d625dd89beee39459a 100644 (file)
@@ -312,7 +312,7 @@ class OStatusPlugin extends Plugin
                 assert($profile instanceof Profile);
 
                 $text = !empty($profile->nickname) && mb_strlen($profile->nickname) < mb_strlen($target)
-                        ? $profile->getNickname()   // TODO: we could do getFancyName() or getFullname() here
+                        ? $profile->getNickname()   // TODO: we could do getBestName() or getFullname() here
                         : $target;
                 $url = $profile->getUri();
                 if (!common_valid_http_url($url)) {