aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-12-01 21:00:39 +0100
committerMario Vavti <mario@mariovavti.com>2017-12-01 21:00:39 +0100
commitdcad9ce26a0de72ba3ad5b86ddb62298598ac380 (patch)
tree6d9a50ac71c4ee463a36f60401c703857620a52b /Zotlabs/Lib
parent3b6d7e306656f1263b80430fbcfdb413bf99ead9 (diff)
downloadvolse-hubzilla-dcad9ce26a0de72ba3ad5b86ddb62298598ac380.tar.gz
volse-hubzilla-dcad9ce26a0de72ba3ad5b86ddb62298598ac380.tar.bz2
volse-hubzilla-dcad9ce26a0de72ba3ad5b86ddb62298598ac380.zip
add a filter for notification to show new posts only
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Enotify.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php
index 697b57b6a..a7b4f28e8 100644
--- a/Zotlabs/Lib/Enotify.php
+++ b/Zotlabs/Lib/Enotify.php
@@ -804,6 +804,8 @@ class Enotify {
'when' => relative_date($item['created']),
'class' => (intval($item['item_unseen']) ? 'notify-unseen' : 'notify-seen'),
'b64mid' => ((in_array($item['verb'], [ACTIVITY_LIKE, ACTIVITY_DISLIKE])) ? 'b64.' . base64url_encode($item['thr_parent']) : 'b64.' . base64url_encode($item['mid'])),
+ 'notify_id' => 'undefined',
+ 'thread_top' => (($item['item_thread_top']) ? true : false),
'message' => strip_tags(bbcode($itemem_text))
);