send comment notification working

This commit is contained in:
isUnknown 2024-10-28 16:52:59 +01:00
parent 85537d3465
commit 722c6b198e
2 changed files with 13 additions and 6 deletions

View file

@ -12,10 +12,10 @@ return [
$user = kirby()->user($data->userUuid);
$comments = $file->comments()->isEmpty() == true ? [] : [];
$comments = $file->comments()->isEmpty() == true ? [] : Yaml::decode($file->comments()->value());
$newComment = [
'fileUuid' => (string )$file->uuid(),
'fileUuid' => (string) $file->uuid(),
'page' => $data->targetPage,
'text' => $data->text,
'username' => $user->name()->isNotEmpty() ? (string) $user->name() : (string) $user->email(),