diff --git a/src/libraries/kunena/src/BBCode/KunenaBBCode.php b/src/libraries/kunena/src/BBCode/KunenaBBCode.php index 7836eaa244..f06a55fa7b 100644 --- a/src/libraries/kunena/src/BBCode/KunenaBBCode.php +++ b/src/libraries/kunena/src/BBCode/KunenaBBCode.php @@ -2703,7 +2703,7 @@ public function DoImage($bbcode, $action, $name, $default, $params, $content) ->set('alt', \count($matches) > 0 ? $altText : 0) ->set('canLink', $bbcode->autoLink_disable == 0); - if (Factory::getApplication()->getIdentity()->id == 0 && $this->config->showImgForGuest == 0) { + if (Factory::getApplication()->getIdentity()->id == 0 && $this->config->showImgForGuest == 0 && !preg_match('@media\/kunena\/emoticons@', $fileurl)) { // Hide between content from non registered users. return (string) $layout->set('title', Text::_('COM_KUNENA_SHOWIMGFORGUEST_HIDEIMG'))->setLayout('unauthorised'); }