aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-08 09:23:31 +0000
committerMario <mario@mariovavti.com>2024-03-08 09:23:31 +0000
commit043e2ff58bb98a8901d5c60bcfed9d380e395199 (patch)
treec84f5d0909d3709b8dae7896a3fc3fa87a60c34a /Zotlabs/Lib
parentdeba1863f56a65563bcccd12e28d2cfa9e644256 (diff)
downloadvolse-hubzilla-043e2ff58bb98a8901d5c60bcfed9d380e395199.tar.gz
volse-hubzilla-043e2ff58bb98a8901d5c60bcfed9d380e395199.tar.bz2
volse-hubzilla-043e2ff58bb98a8901d5c60bcfed9d380e395199.zip
check if term is set before processing it
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Activity.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 29b99fab5..43f7386e7 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -2882,7 +2882,7 @@ class Activity {
}
}
- if (!PConfig::Get($channel['channel_id'], 'system', 'no_smilies')) {
+ if (isset($item['term']) && !PConfig::Get($channel['channel_id'], 'system', 'no_smilies')) {
foreach ($item['term'] as $t) {
if ($t['ttype'] === TERM_EMOJI) {
$item['body'] = str_replace($t['term'], '[img class="smiley emoji custom-emoji" alt="' . $t['term'] . '" title="' . $t['term'] . '"]' . $t['url'] . '[/img]', $item['body']);