feat(database): re-add per-post counters to track page views etc.

This commit is contained in:
David Bailey 2025-03-27 23:31:29 +01:00
parent 5ddbae91d2
commit a3604d21c9
7 changed files with 53 additions and 9 deletions

View file

@ -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);