diff options
author | Mario <mario@mariovavti.com> | 2022-02-13 18:58:12 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-02-13 18:58:12 +0000 |
commit | a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa (patch) | |
tree | 048628b0da961a7cfda32dce7ed3572875e22907 /Zotlabs/Lib/Enotify.php | |
parent | 4b06bc552f04fc78545a450343cc59e236791a66 (diff) | |
download | volse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.tar.gz volse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.tar.bz2 volse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.zip |
address deprecation warnings
Diffstat (limited to 'Zotlabs/Lib/Enotify.php')
-rw-r--r-- | Zotlabs/Lib/Enotify.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php index 2e483cb92..1421c72ae 100644 --- a/Zotlabs/Lib/Enotify.php +++ b/Zotlabs/Lib/Enotify.php @@ -845,6 +845,10 @@ class Enotify { // convert this logic into a json array just like the system notifications $who = (($item['verb'] === ACTIVITY_SHARE) ? 'owner' : 'author'); + $body = html2plain(bbcode($item['body'], ['drop_media']), 75, true); + if ($body) { + $body = htmlentities($body, ENT_QUOTES, 'UTF-8', false); + } $x = array( 'notify_link' => $item['llink'], @@ -858,7 +862,7 @@ class Enotify { //'b64mid' => ((in_array($item['verb'], [ACTIVITY_LIKE, ACTIVITY_DISLIKE])) ? gen_link_id($item['thr_parent']) : gen_link_id($item['mid'])), 'thread_top' => (($item['item_thread_top']) ? true : false), 'message' => bbcode(escape_tags($itemem_text)), - 'body' => htmlentities(html2plain(bbcode($item['body'], ['drop_media', true]), 75, true), ENT_QUOTES, 'UTF-8', false), + 'body' => $body, // these are for the superblock addon 'hash' => $item[$who]['xchan_hash'], 'uid' => $item['uid'], |