Use the name as name

This commit is contained in:
Michael 2020-04-15 20:45:04 +00:00
parent 3ff607deee
commit 472518f0b5
2 changed files with 7 additions and 1 deletions

View file

@ -1834,7 +1834,7 @@ class Diaspora
continue;
}
$fields = ['uri-id' => $uriid, 'name' => substr($person['addr'], 0, 64), 'url' => $person['url']];
$fields = ['uri-id' => $uriid, 'name' => substr($person['name'] ?: $person['nick'], 0, 64), 'url' => $person['url']];
if ($match[1] == Term::TAG_CHARACTER[Term::MENTION]) {
$fields['type'] = Term::MENTION;