Account for false return value of Repository\Notify->insert in notification()
- Address https://github.com/friendica/friendica/issues/8473#issuecomment-651393541
This commit is contained in:
parent
91c843608b
commit
a3e775f28c
|
@ -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…
Reference in New Issue
Block a user