New pattern for comment creation in code

Use the builder design pattern to build a NewComment

Add a function to transform a NewComment into a Create activity

Virtually send this activity to the shared inbox of the instance
This commit is contained in:
Bat
2018-06-21 11:28:42 +01:00
parent db5ca8f453
commit e6b8943085
6 changed files with 103 additions and 50 deletions
+1
View File
@@ -71,6 +71,7 @@ fn main() {
routes::comments::new,
routes::comments::new_auth,
routes::comments::create,
routes::comments::create_response,
routes::instance::index,
routes::instance::shared_inbox,