fix panic on empty notification content
This commit is contained in:
parent
de1f596401
commit
1db946e372
@ -65,7 +65,7 @@ class NotificationsController extends Controller
|
||||
|
||||
return [
|
||||
'title' => $notification->data['title'],
|
||||
'content' => $converter->convertToHtml($notification->data['content']),
|
||||
'content' => $converter->convertToHtml($notification->data['content'] ?? ''),
|
||||
'time' => $notification->created_at->toDateTimeString(),
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user