aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Enotify.php
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-24 16:20:25 -0700
committerredmatrix <mike@macgirvin.com>2016-09-24 16:20:25 -0700
commitc04c57ea0f34b84e59d63201314aa35eede2d875 (patch)
tree985d099acc10b91ba898068dd390c93d70bd8770 /Zotlabs/Lib/Enotify.php
parentdca4db9d4dffb7840885abf20d50154ed72462a0 (diff)
downloadvolse-hubzilla-c04c57ea0f34b84e59d63201314aa35eede2d875.tar.gz
volse-hubzilla-c04c57ea0f34b84e59d63201314aa35eede2d875.tar.bz2
volse-hubzilla-c04c57ea0f34b84e59d63201314aa35eede2d875.zip
the rest of the backend for supporting scroll-to-comment from notifications. We still need an ajax handler as fragments are evaluated before content is loaded.
Diffstat (limited to 'Zotlabs/Lib/Enotify.php')
-rw-r--r--Zotlabs/Lib/Enotify.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php
index 92b9fddbd..a6ff528aa 100644
--- a/Zotlabs/Lib/Enotify.php
+++ b/Zotlabs/Lib/Enotify.php
@@ -115,6 +115,9 @@ 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