pdf > comments > new comments : show email address if no name

This commit is contained in:
isUnknown 2024-10-23 15:45:04 +02:00
parent 6bffbc1707
commit ea48094bc7
8 changed files with 52 additions and 43 deletions

View file

@ -18,7 +18,7 @@ return [
$comments[$data->targetPage][$data->id] = [
'text' => $data->text,
'username' => (string) $user->name(),
'username' => $user->name()->isNotEmpty() ? (string) $user->name() : (string) $user->email(),
'date' => (string) $data->date,
];
@ -27,6 +27,6 @@ return [
'comments' => $comments
]);
return $comments;
return getFileData($newFile);
}
];