From ff9eb206631e706c3b7d0b0f8a331c663d98ef9a Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Tue, 28 Jan 2020 01:12:11 +0100 Subject: [PATCH] Fix enotify item link --- include/enotify.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/include/enotify.php b/include/enotify.php index b35d5507cc..a1dbf77b65 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' => $params['source_name'], 'name_cache' => strip_tags(BBCode::convert($params['source_name'])), - 'url' => $params['source_link'], - 'photo' => $params['source_photo'], - 'uid' => $params['uid'], - 'iid' => $item_id, - 'parent' => $parent_id, - 'type' => $params['type'], - 'verb' => $params['verb'], - 'otype' => $params['otype'], + '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'], ]); - $notification->link = DI::baseUrl() . '/notification/view/' . $notification->id; - $notification->msg = Renderer::replaceMacros($epreamble, ['$itemlink' => $notification->link]); + $notification->msg = Renderer::replaceMacros($epreamble, ['$itemlink' => $notification->link]); DI::notify()->update($notification); - $itemlink = $notification->link; + $itemlink = DI::baseUrl() . '/notification/view/' . $notification->id; $notify_id = $notification->id; } -- 2.39.5