Add (badge)
This commit is contained in:
@@ -141,22 +141,15 @@ public static function handle(int $rss_post_id)
|
||||
|
||||
$rss_post->keyword_list = implode(',', $words_to_add_in_keyword_list);
|
||||
|
||||
|
||||
if (is_empty($rss_post->bites))
|
||||
{
|
||||
$rss_post->status = 'blocked';
|
||||
if (is_empty($rss_post->bites)) {
|
||||
$rss_post->status = 'blocked';
|
||||
} else {
|
||||
$rss_post->status = 'published';
|
||||
}
|
||||
else
|
||||
{
|
||||
$rss_post->status = 'published';
|
||||
}
|
||||
|
||||
|
||||
if ($rss_post->save()) {
|
||||
|
||||
|
||||
if ($rss_post->status == 'published')
|
||||
{
|
||||
if ($rss_post->status == 'published') {
|
||||
|
||||
$has_saved_keyword = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user