Some changes since getFancyName() is longer with full acct: URI
This commit is contained in:
parent
7ec69e4215
commit
9a89990293
@ -151,9 +151,11 @@ class Deleted_notice extends Managed_DataObject
|
|||||||
$actobj->title = ActivityUtils::verbToTitle($actobj->verb);
|
$actobj->title = ActivityUtils::verbToTitle($actobj->verb);
|
||||||
|
|
||||||
$actor = $this->getActor();
|
$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}}.'),
|
$actobj->content = sprintf(_m('<a href="%1$s">%2$s</a> deleted notice {{%3$s}}.'),
|
||||||
htmlspecialchars($actor->getUrl()),
|
htmlspecialchars($actor->getUrl()),
|
||||||
htmlspecialchars($actor->getBestName()),
|
htmlspecialchars($actor->getFancyName()),
|
||||||
htmlspecialchars($this->getUri())
|
htmlspecialchars($this->getUri())
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -312,7 +312,7 @@ class OStatusPlugin extends Plugin
|
|||||||
assert($profile instanceof Profile);
|
assert($profile instanceof Profile);
|
||||||
|
|
||||||
$text = !empty($profile->nickname) && mb_strlen($profile->nickname) < mb_strlen($target)
|
$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;
|
: $target;
|
||||||
$url = $profile->getUri();
|
$url = $profile->getUri();
|
||||||
if (!common_valid_http_url($url)) {
|
if (!common_valid_http_url($url)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user