Remove PgConnection when we don't need it

Massive simplification in the ActivityPub module!
This commit is contained in:
Bat
2018-06-21 16:31:42 +01:00
parent 7ddad12420
commit 2217ec0d56
10 changed files with 17 additions and 20 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ fn create(blog_name: String, data: Form<NewPostForm>, user: User, conn: DbConn)
}
let act = post.create_activity(&*conn);
broadcast(&*conn, &user, act, user.get_followers(&*conn));
broadcast(&user, act, user.get_followers(&*conn));
Redirect::to(uri!(details: blog = blog_name, slug = slug))
}