fix some, break some compiling by adding async/await in front of it
i forgot that we can't `Send` diesel connections over threads, so this is going to require some rethinking.
This commit is contained in:
@@ -71,7 +71,8 @@ impl Blog {
|
||||
insert!(blogs, NewBlog, |inserted, conn| {
|
||||
let instance = inserted.get_instance(conn)?;
|
||||
if inserted.outbox_url.is_empty() {
|
||||
inserted.outbox_url = instance.compute_box(BLOG_PREFIX, &inserted.actor_id, "outbox");
|
||||
inserted.outbox_url =
|
||||
instance.compute_box(BLOG_PREFIX, &inserted.actor_id, r#"outbox"#);
|
||||
}
|
||||
|
||||
if inserted.inbox_url.is_empty() {
|
||||
|
||||
Reference in New Issue
Block a user