let new_person = PersonForm {
name: "thommy_site_agg".into(),
+ public_key: Some("pubkey".to_string()),
..PersonForm::default()
};
let site_form = SiteForm {
name: "test_site".into(),
+ public_key: Some("pubkey".to_string()),
..Default::default()
};
let new_community = CommunityForm {
name: "TIL_site_agg".into(),
title: "nada".to_owned(),
+ public_key: Some("pubkey".to_string()),
..CommunityForm::default()
};
};
// Insert two of those comments
- let inserted_comment = Comment::create(&conn, &comment_form).unwrap();
+ let inserted_comment = Comment::create(&conn, &comment_form, None).unwrap();
let child_comment_form = CommentForm {
content: "A test comment".into(),
creator_id: inserted_person.id,
post_id: inserted_post.id,
- parent_id: Some(inserted_comment.id),
..CommentForm::default()
};
- let _inserted_child_comment = Comment::create(&conn, &child_comment_form).unwrap();
+ let _inserted_child_comment =
+ Comment::create(&conn, &child_comment_form, Some(&inserted_comment.path)).unwrap();
let site_aggregates_before_delete = SiteAggregates::read(&conn).unwrap();