mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Update viewtopic.php
This commit is contained in:
parent
12cbce0322
commit
d7bb435797
1 changed files with 1 additions and 1 deletions
|
@ -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 ($i == 0) {
|
||||
if ($is_first_post || ($start && $i == 0)) {
|
||||
$page_cfg['meta_description'] = str_short(str_replace("\n", ' ', strip_tags(br2nl($message))), 220);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue