diff options
author | Mario <mario@mariovavti.com> | 2020-01-18 13:17:37 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-01-18 13:17:37 +0000 |
commit | bfae86bdb6d18f4238fe114485e24947ad7c7d75 (patch) | |
tree | b85ccc4cd324a939d10b7a07263406849e22b039 /Zotlabs/Lib/Enotify.php | |
parent | 66f6a1d186e62472ea69120da31675e2a45f790f (diff) | |
download | volse-hubzilla-bfae86bdb6d18f4238fe114485e24947ad7c7d75.tar.gz volse-hubzilla-bfae86bdb6d18f4238fe114485e24947ad7c7d75.tar.bz2 volse-hubzilla-bfae86bdb6d18f4238fe114485e24947ad7c7d75.zip |
more bdi tags
Diffstat (limited to 'Zotlabs/Lib/Enotify.php')
-rw-r--r-- | Zotlabs/Lib/Enotify.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php index bc2710ee1..8834eedca 100644 --- a/Zotlabs/Lib/Enotify.php +++ b/Zotlabs/Lib/Enotify.php @@ -803,18 +803,18 @@ class Enotify { localize_item($item); if($item['shortlocalize']) { - $itemem_text = $item['shortlocalize']; + $itemem_text = strip_tags($item['shortlocalize']); } elseif($item['localize']) { - $itemem_text = $item['localize']; + $itemem_text = strip_tags($item['localize']); } else { $itemem_text = (($item['item_thread_top']) ? t('created a new post') - : sprintf( t('commented on %s\'s post'), $item['owner']['xchan_name'])); + : sprintf( t('commented on %s\'s post'), '<bdi>' . strip_tags($item['owner']['xchan_name']) . '</bdi>')); if($item['verb'] === ACTIVITY_SHARE) { - $itemem_text = sprintf( t('repeated %s\'s post'), $item['author']['xchan_name']); + $itemem_text = sprintf( t('repeated %s\'s post'), '<bdi>' . strip_tags($item['author']['xchan_name']) . '</bdi>'); } } @@ -849,7 +849,7 @@ 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' => $itemem_text, // these are for the superblock addon 'hash' => $item[$who]['xchan_hash'], 'uid' => $item['uid'], |