keep working on the like button

This commit is contained in:
2026-07-20 19:02:04 +10:00
parent 7d0727a7aa
commit 6241824960
9 changed files with 67 additions and 4 deletions

View File

@@ -32,6 +32,7 @@ class Database {
std::vector<Post> getUserPosts(uint64_t userId);
std::vector<Post> getTopPosts(uint64_t amount);
void addPost(const Post& post);
void addLike(uint64_t postId, uint64_t userId);
std::optional<User> getUser(uint64_t id);
std::optional<User> getUserByName(const std::string& name);