[FreeNetwork][ActivityPub] Sometimes remote Actors report empty full names in not very explicit manners

This commit is contained in:
2021-12-12 06:32:17 +00:00
parent a81ac673ac
commit 1d09a02ad6
3 changed files with 4 additions and 4 deletions

View File

@@ -373,7 +373,7 @@ class FreeNetwork extends Component
}
assert($actor instanceof Actor);
$displayName = $actor->getFullname() ?? $actor->getNickname() ?? $target; // TODO: we could do getBestName() or getFullname() here
$displayName = !empty($actor->getFullname()) ? $actor->getFullname() : $actor->getNickname() ?? $target; // TODO: we could do getBestName() or getFullname() here
$matches[$pos] = [
'mentioned' => [$actor],