Update (rss)

This commit is contained in:
2023-12-03 02:37:07 +08:00
parent 02d2c736e0
commit 7279327148

View File

@@ -18,15 +18,16 @@ public static function handle(int $rss_post_id)
return;
}
// if (count_words($final_content) < 250)
// {
// $rss_post->status = 'blocked';
// $rss_post->save();
// return;
// }
$final_content = "TITLE: {$rss_post->title} \n BODY:" . $rss_post->body;
if (count_words($final_content) < 250)
{
$rss_post->status = 'blocked';
$rss_post->save();
return;
}
if (in_array($rss_post->status, ['blocked', 'trashed'])) {
return;