Add (ui)
This commit is contained in:
@@ -13,9 +13,8 @@ public static function handle(int $post_id)
|
||||
{
|
||||
$post = Post::find($post_id);
|
||||
|
||||
if (is_null($post))
|
||||
{
|
||||
return ;
|
||||
if (is_null($post)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$post->status = 'publish';
|
||||
|
||||
Reference in New Issue
Block a user