Update viewtopic.php

This commit is contained in:
Roman Kelesidis 2025-05-31 10:09:53 +03:00
commit e2440618ec

View file

@ -672,7 +672,7 @@ for ($i = 0; $i < $total_posts; $i++) {
$is_first_post = ($post_id == $t_data['topic_first_post_id']);
// Set meta description
if ($is_first_post || ($start && $i == 0)) {
if ($is_first_post || ($start && $i == 0) || ($post_order == 'desc' && $i == 0)) {
$page_cfg['meta_description'] = str_short(str_replace("\n", ' ', strip_tags(br2nl($message))), 220);
}