diff --git a/src/Controllers/PostController.php b/src/Controllers/PostController.php index fc3adfac..241e90d6 100644 --- a/src/Controllers/PostController.php +++ b/src/Controllers/PostController.php @@ -846,6 +846,18 @@ class PostController $dbQuery->$andFunc('fav_count ' . $operator . ' ?')->put(intval($val)); break; + case 'tagmin': + case 'tagmax': + $operator = $key == 'tagmin' ? '>=' : '<='; + $dbQuery->$andFunc('tag_count ' . $operator . ' ?')->put(intval($val)); + break; + + case 'commentmin': + case 'commentmax': + $operator = $key == 'commentmin' ? '>=' : '<='; + $dbQuery->$andFunc('comment_count ' . $operator . ' ?')->put(intval($val)); + break; + case 'type': switch ($val) {