feat(search): ✨ add proper DB tag searching
This commit is contained in:
parent
f9cfb81079
commit
22c953793c
4 changed files with 147 additions and 20 deletions
|
@ -56,6 +56,17 @@ class PostHandler {
|
|||
|
||||
return $out_list;
|
||||
}
|
||||
|
||||
public function search_posts($search_query) {
|
||||
$search_results = $this->db->search_posts($search_query);
|
||||
|
||||
$out_list = [];
|
||||
foreach($search_results as $search_result) {
|
||||
array_push($out_list, new Post($this, $search_result, $this->site_defaults));
|
||||
}
|
||||
|
||||
return $out_list;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue