FIX: fix minor bugs in blog module
This commit is contained in:
@@ -11,7 +11,8 @@ class Comment extends Model
|
||||
'content_id',
|
||||
'content',
|
||||
'email',
|
||||
'name'
|
||||
'name',
|
||||
'approved'
|
||||
];
|
||||
|
||||
public function author()
|
||||
|
||||
@@ -40,7 +40,8 @@ class CreateNewComment extends Controller
|
||||
'content_id' => $article->id,
|
||||
'name' => $name,
|
||||
'email' => $email,
|
||||
'content' => $content
|
||||
'content' => $content,
|
||||
'approved' => !is_null($user)
|
||||
]);
|
||||
|
||||
// fire event about new comment
|
||||
|
||||
Reference in New Issue
Block a user