Prevent image descriptions from being replaced by local smilies

- AP-received emojis have their code in the image description
This commit is contained in:
Hypolite Petovan 2020-11-15 00:12:26 -05:00
parent 37a122bf7c
commit dbb33399bc

View File

@ -1699,7 +1699,9 @@ class BBCode
// Replace non graphical smilies for external posts
if (!$nosmile && !$for_plaintext) {
$text = Smilies::replace($text);
$text = self::performWithEscapedTags($text, ['img'], function ($text) {
return Smilies::replace($text);
});
}
if (!$for_plaintext && DI::config()->get('system', 'big_emojis') && ($simple_html != self::DIASPORA)) {