Update (front post): Fix parsing issue

This commit is contained in:
2023-10-04 20:19:52 +08:00
parent 1e7b75706e
commit dba3f0f638
8 changed files with 33 additions and 35 deletions

View File

@@ -17,12 +17,10 @@ public static function handle($post)
{
$keyword = $post->main_keyword;
if (is_array($post->keywords))
{
if (count($post->keywords) > 0)
{
$keyword .= " " . implode(" ", $post->keywords);
}
if (is_array($post->keywords)) {
if (count($post->keywords) > 0) {
$keyword .= ' '.implode(' ', $post->keywords);
}
}
$title = $post->short_title;