From 6586b97a547795dc2a782402f081dfccd1fde0d4 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 25 Sep 2016 23:12:45 -0700 Subject: remove the now useless url fragments from notification links --- Zotlabs/Lib/Enotify.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Zotlabs/Lib') diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php index ca83adb34..421d310d9 100644 --- a/Zotlabs/Lib/Enotify.php +++ b/Zotlabs/Lib/Enotify.php @@ -115,9 +115,6 @@ class Enotify { // logger("notification: params = " . print_r($params, true), LOGGER_DEBUG); $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 @@ -680,7 +677,7 @@ class Enotify { // convert this logic into a json array just like the system notifications return array( - 'notify_link' => $item['llink'] . '#item_' . $item['id'], + 'notify_link' => $item['llink'], 'name' => $item['author']['xchan_name'], 'url' => $item['author']['xchan_url'], 'photo' => $item['author']['xchan_photo_s'], -- cgit v1.2.3