[FreeNetwork][ActivityPub] Sometimes remote Actors report empty full names in not very explicit manners
This commit is contained in:
@@ -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],
|
||||
|
Reference in New Issue
Block a user