diff --git a/Web/Models/Entities/Traits/TRichText.php b/Web/Models/Entities/Traits/TRichText.php index d4a4acbc..8026506a 100644 --- a/Web/Models/Entities/Traits/TRichText.php +++ b/Web/Models/Entities/Traits/TRichText.php @@ -8,15 +8,15 @@ trait TRichText $emojis = \Emoji\detect_emoji($text); $replaced = []; # OVK-113 foreach($emojis as $emoji) { - $point = strtolower($emoji["hex_str"]); + $point = explode("-", strtolower($emoji["hex_str"]))[0]; if(in_array($point, $replaced)) continue; else $replaced[] = $point; - $image = "https://cdn.jsdelivr.net/npm/emojione-assets@4.5.0/png/32/$point.png"; + $image = "https://abs.twimg.com/emoji/v2/72x72/$point.png"; $image = "