mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-28 18:53:58 -04:00
Filter on published in Comment_Controller::_index()
This commit is contained in:
@@ -30,6 +30,7 @@ class Comments_Controller extends REST_Controller {
|
||||
|
||||
$comments = ORM::factory("comment")
|
||||
->where("item_id", $item->id)
|
||||
->where("published", 1)
|
||||
->orderby("created", "desc")
|
||||
->find_all();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user