send comment notification working
This commit is contained in:
parent
85537d3465
commit
722c6b198e
2 changed files with 13 additions and 6 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue