Account for false return value of Repository\Notify->insert in notification()

- Address https://github.com/friendica/friendica/issues/8473#issuecomment-651393541
pull/8831/head
Hypolite Petovan 2 years ago
parent 91c843608b
commit a3e775f28c
  1. 5
      include/enotify.php

@ -479,6 +479,11 @@ function notification($params)
'otype' => $params['otype'] ?? '',
]);
// Notification insertion can be intercepted by an addon registering the 'enotify_store' hook
if (!$notification) {
return false;
}
$notification->msg = Renderer::replaceMacros($epreamble, ['$itemlink' => $notification->link]);
DI::notify()->update($notification);

Loading…
Cancel
Save