Fixing issue with Cyrillic descriptions not showing in meta tags.
This is not recommended to directly edit your vendor files. But for quick fix like in my situation this is great solution.
@JasperVriends please consider to reviewing this issue. For lack of time i can't create PR or etc fixing this bug.
This method also works with any other multibyte language.
Notice: php mb_string extension must be turned on
Open /vendor/v17development/flarum-seo/src/Listeners/PageListener.php
Find setDescription()
function
Change
$description = trim(preg_replace('/\s+/', ' ', substr($description, 0, 157))) . (strlen($description) > 157 ? '...' : '');
To
$description = trim(preg_replace('/\s+/', ' ', mb_substr($description, 0, 157))) . (mb_strlen($description) > 157 ? '...' : '');
I don't even noticed that descriptions doesn't showing on my website. So Google and Yandex bots index entire site without descriptions.