FEATURE: hide comments when article does not allow them
This commit is contained in:
@@ -101,6 +101,11 @@ class ArticleList extends Handler
|
||||
$articles = $articles->orderBy('created_at', 'DESC')
|
||||
->paginate(20);
|
||||
|
||||
// decode module settings
|
||||
foreach ($articles as $article) {
|
||||
$article->module_settings = json_decode($article->module_settings);
|
||||
}
|
||||
|
||||
return Controller::VisitorsView($content->template, [
|
||||
'page' => $content,
|
||||
'articles' => $articles,
|
||||
|
||||
Reference in New Issue
Block a user