X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fenotify.php;h=6b3171dda6d6cd2102ae9035cbd746201602a79a;hb=1a385153f89487113e2aa07a5ceba31914f513c5;hp=89a81833d08308bfea5ed3303f6a9f2fac242118;hpb=6a23f51549e6b476d494dce4131a24f8ebcdba43;p=friendica.git diff --git a/include/enotify.php b/include/enotify.php index 89a81833d0..6b3171dda6 100644 --- a/include/enotify.php +++ b/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);