aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-01-18 14:19:31 +0000
committerMario <mario@mariovavti.com>2020-01-18 14:19:31 +0000
commit7404a8ec1a0980fa3448ca6b05e410ea36c6a5f2 (patch)
tree6d0dd0bd487ef950fd75450962efacd30acf6388 /Zotlabs/Lib
parentbfae86bdb6d18f4238fe114485e24947ad7c7d75 (diff)
downloadvolse-hubzilla-7404a8ec1a0980fa3448ca6b05e410ea36c6a5f2.tar.gz
volse-hubzilla-7404a8ec1a0980fa3448ca6b05e410ea36c6a5f2.tar.bz2
volse-hubzilla-7404a8ec1a0980fa3448ca6b05e410ea36c6a5f2.zip
implement bdi tags via bbcode where possible
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Enotify.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php
index 8834eedca..db80e9edd 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 = strip_tags($item['shortlocalize']);
+ $itemem_text = $item['shortlocalize'];
}
elseif($item['localize']) {
- $itemem_text = strip_tags($item['localize']);
+ $itemem_text = $item['localize'];
}
else {
$itemem_text = (($item['item_thread_top'])
? t('created a new post')
- : sprintf( t('commented on %s\'s post'), '<bdi>' . strip_tags($item['owner']['xchan_name']) . '</bdi>'));
+ : sprintf( t('commented on %s\'s post'), '[bdi]' . $item['owner']['xchan_name'] . '[/bdi]'));
if($item['verb'] === ACTIVITY_SHARE) {
- $itemem_text = sprintf( t('repeated %s\'s post'), '<bdi>' . strip_tags($item['author']['xchan_name']) . '</bdi>');
+ $itemem_text = sprintf( t('repeated %s\'s post'), '[bdi]' . $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' => $itemem_text,
+ 'message' => bbcode(strip_tags($itemem_text)),
// these are for the superblock addon
'hash' => $item[$who]['xchan_hash'],
'uid' => $item['uid'],