mirror of
https://github.com/openvk/openvk
synced 2024-11-13 10:39:24 +03:00
Fix indentation in TRichText
This commit is contained in:
parent
373513cabc
commit
1c34e51750
1 changed files with 17 additions and 16 deletions
|
@ -5,7 +5,8 @@ trait TRichText
|
|||
{
|
||||
private function formatEmojis(string $text): string
|
||||
{
|
||||
if(iconv_strlen($this->getRecord()->content) > OPENVK_ROOT_CONF["openvk"]["preferences"]["wall"]["postSizes"]["emojiProcessingLimit"])
|
||||
$contentColumn = property_exists($this, "overrideContentColumn") ? $this->overrideContentColumn : "content";
|
||||
if(iconv_strlen($this->getRecord()->{$contentColumn}) > OPENVK_ROOT_CONF["openvk"]["preferences"]["wall"]["postSizes"]["emojiProcessingLimit"])
|
||||
return $text;
|
||||
|
||||
$emojis = \Emoji\detect_emoji($text);
|
||||
|
|
Loading…
Reference in a new issue