Oops I don't even know how my own code works

It is context(), not CONTEXT
This commit is contained in:
Bat 2018-05-04 11:17:38 +01:00
parent 780f8ca2f5
commit 0ce37c6525
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ use reqwest::Client;
use serde_json;
use BASE_URL;
use activity_pub::{activity_pub, ActivityPub, context, ap_url, CONTEXT};
use activity_pub::{activity_pub, ActivityPub, context, ap_url, context};
use activity_pub::activity::Activity;
use activity_pub::sign::*;
use models::instance::Instance;
@ -83,7 +83,7 @@ pub trait Actor: Sized {
fn send_to_inbox<A: Activity, S: Actor + Signer>(&self, conn: &PgConnection, sender: &S, act: A) {
let mut act = act.serialize();
act["@context"] = CONTEXT;
act["@context"] = context();
let signed = act.sign(sender, conn);
let res = Client::new()
.post(&self.compute_inbox(conn)[..])