feat(database): ✨ re-add per-post counters to track page views etc.
This commit is contained in:
parent
5ddbae91d2
commit
a3604d21c9
7 changed files with 53 additions and 9 deletions
|
@ -46,6 +46,10 @@ class PostHandler {
|
|||
return ($this->markdown_engine)($post);
|
||||
}
|
||||
|
||||
public function increment_post_counter(...$opts) {
|
||||
$this->db->increment_post_counter(...$opts);
|
||||
}
|
||||
|
||||
public function get_children_for($post, ...$search_opts) {
|
||||
$child_list = $this->db->get_post_children($post->path, ...$search_opts);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue