delete comments properly when deleting users

This commit is contained in:
trinity-1686a
2023-04-09 12:54:29 +02:00
parent 613ccbcd94
commit e1777e9071
3 changed files with 16 additions and 7 deletions
+1
View File
@@ -73,6 +73,7 @@ impl Comment {
});
get!(comments);
list_by!(comments, list_by_post, post_id as i32);
list_by!(comments, list_by_author, author_id as i32);
find_by!(comments, find_by_ap_url, ap_url as &str);
pub fn get_author(&self, conn: &Connection) -> Result<User> {