remove the now useless url fragments from notification links

This commit is contained in:
redmatrix 2016-09-25 23:12:45 -07:00
parent 7e59c70a9f
commit 6586b97a54

View File

@ -115,9 +115,6 @@ class Enotify {
// logger("notification: params = " . print_r($params, true), LOGGER_DEBUG); // logger("notification: params = " . print_r($params, true), LOGGER_DEBUG);
$itemlink = $params['link']; $itemlink = $params['link'];
if($params['item']['id'])
$itemlink .= '#item_' . $params['item']['id'];
// ignore like/unlike activity on posts - they probably require a separate notification preference // ignore like/unlike activity on posts - they probably require a separate notification preference
@ -680,7 +677,7 @@ class Enotify {
// convert this logic into a json array just like the system notifications // convert this logic into a json array just like the system notifications
return array( return array(
'notify_link' => $item['llink'] . '#item_' . $item['id'], 'notify_link' => $item['llink'],
'name' => $item['author']['xchan_name'], 'name' => $item['author']['xchan_name'],
'url' => $item['author']['xchan_url'], 'url' => $item['author']['xchan_url'],
'photo' => $item['author']['xchan_photo_s'], 'photo' => $item['author']['xchan_photo_s'],