diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-11-14 11:12:20 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-11-14 11:12:20 +0100 |
commit | dfc5159aa3c3a9f1190e19ab9a69b21f91d87fd1 (patch) | |
tree | c78eed1693d04fc927c5c2401974010adce14d5e /Zotlabs/Lib/Enotify.php | |
parent | a9fd3608ea50ec4522075b3315a35c8eed9581d7 (diff) | |
parent | 886cdb440bfb92c28332d482a84e0a2f92333cb1 (diff) | |
download | volse-hubzilla-dfc5159aa3c3a9f1190e19ab9a69b21f91d87fd1.tar.gz volse-hubzilla-dfc5159aa3c3a9f1190e19ab9a69b21f91d87fd1.tar.bz2 volse-hubzilla-dfc5159aa3c3a9f1190e19ab9a69b21f91d87fd1.zip |
Merge branch 'dev'
Diffstat (limited to 'Zotlabs/Lib/Enotify.php')
-rw-r--r-- | Zotlabs/Lib/Enotify.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php index cfb0bd344..25c96d9cc 100644 --- a/Zotlabs/Lib/Enotify.php +++ b/Zotlabs/Lib/Enotify.php @@ -825,7 +825,7 @@ class Enotify { // convert this logic into a json array just like the system notifications - return array( + $x = array( 'notify_link' => $item['llink'], 'name' => $item['author']['xchan_name'], 'url' => $item['author']['xchan_url'], @@ -835,9 +835,19 @@ class Enotify { '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)) + 'message' => strip_tags(bbcode($itemem_text)), + // these are for the superblock addon + 'hash' => $item['author']['xchan_hash'], + 'uid' => local_channel(), + 'display' => true ); + call_hooks('enotify_format',$x); + if(! $x['display']) { + return []; + } + + return $x; } } |