[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

@@ -77,7 +77,7 @@ class Actor extends Model
// Actor
$actor_map = [
'nickname' => $person->get('preferredUsername'),
'fullname' => $person->get('name'),
'fullname' => !empty($person->get('name')) ? $person->get('name') : null,
'created' => new DateTime($person->get('published') ?? 'now'),
'bio' => $person->has('summary') ? mb_substr(Security::sanitize($person->get('summary')), 0, 1000) : null,
'is_local' => false,