Update (rss)
This commit is contained in:
@@ -18,15 +18,16 @@ public static function handle(int $rss_post_id)
|
|||||||
return;
|
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;
|
$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'])) {
|
if (in_array($rss_post->status, ['blocked', 'trashed'])) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user