X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fenotify.php;h=e21adc91ac64fe07dbcfc2e2aad7f6166f34dc56;hb=34f4aedb87e403ef276fa780bcaaeb280336c0f4;hp=a1dbf77b65a8eadbb95547ceafef8427cc6f21a0;hpb=ff9eb206631e706c3b7d0b0f8a331c663d98ef9a;p=friendica.git diff --git a/include/enotify.php b/include/enotify.php index a1dbf77b65..e21adc91ac 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -483,24 +483,24 @@ function notification($params) if ($show_in_notification_page) { $notification = DI::notify()->insert([ - 'name' => $params['source_name'], - 'name_cache' => strip_tags(BBCode::convert($params['source_name'])), - 'url' => $params['source_link'], - 'photo' => $params['source_photo'], - 'link' => $itemlink, - 'uid' => $params['uid'], - 'iid' => $item_id, - 'parent' => $parent_id, - 'type' => $params['type'], - 'verb' => $params['verb'], - 'otype' => $params['otype'], + 'name' => $params['source_name'] ?? '', + 'name_cache' => strip_tags(BBCode::convert($params['source_name'] ?? '')), + 'url' => $params['source_link'] ?? '', + 'photo' => $params['source_photo'] ?? '', + 'link' => $itemlink ?? '', + 'uid' => $params['uid'] ?? 0, + 'iid' => $item_id ?? 0, + 'parent' => $parent_id ?? 0, + 'type' => $params['type'] ?? '', + 'verb' => $params['verb'] ?? '', + 'otype' => $params['otype'] ?? '', ]); $notification->msg = Renderer::replaceMacros($epreamble, ['$itemlink' => $notification->link]); DI::notify()->update($notification); - $itemlink = DI::baseUrl() . '/notification/view/' . $notification->id; + $itemlink = DI::baseUrl() . '/notification/' . $notification->id; $notify_id = $notification->id; }