Fix enotify item link
This commit is contained in:
parent
443e106105
commit
ff9eb20663
|
@ -487,6 +487,7 @@ function notification($params)
|
||||||
'name_cache' => strip_tags(BBCode::convert($params['source_name'])),
|
'name_cache' => strip_tags(BBCode::convert($params['source_name'])),
|
||||||
'url' => $params['source_link'],
|
'url' => $params['source_link'],
|
||||||
'photo' => $params['source_photo'],
|
'photo' => $params['source_photo'],
|
||||||
|
'link' => $itemlink,
|
||||||
'uid' => $params['uid'],
|
'uid' => $params['uid'],
|
||||||
'iid' => $item_id,
|
'iid' => $item_id,
|
||||||
'parent' => $parent_id,
|
'parent' => $parent_id,
|
||||||
|
@ -495,12 +496,11 @@ function notification($params)
|
||||||
'otype' => $params['otype'],
|
'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);
|
DI::notify()->update($notification);
|
||||||
|
|
||||||
$itemlink = $notification->link;
|
$itemlink = DI::baseUrl() . '/notification/view/' . $notification->id;
|
||||||
$notify_id = $notification->id;
|
$notify_id = $notification->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user