diff --git a/src/activity_pub/sign.rs b/src/activity_pub/sign.rs index cdc4c740..6ad6275a 100644 --- a/src/activity_pub/sign.rs +++ b/src/activity_pub/sign.rs @@ -17,7 +17,7 @@ pub fn gen_keypair() -> (Vec, Vec) { } pub trait Signer { - fn get_key_id(&self, conn: &PgConnection) -> String; + fn get_key_id(&self) -> String; /// Sign some data with the signer keypair fn sign(&self, to_sign: String) -> Vec; diff --git a/src/models/blogs.rs b/src/models/blogs.rs index eb2d3ab4..ea3d1beb 100644 --- a/src/models/blogs.rs +++ b/src/models/blogs.rs @@ -259,7 +259,7 @@ impl APActor for Blog { } impl sign::Signer for Blog { - fn get_key_id(&self, _conn: &PgConnection) -> String { + fn get_key_id(&self) -> String { format!("{}#main-key", self.ap_url) } diff --git a/src/models/users.rs b/src/models/users.rs index 0f99abb2..63d5aec5 100644 --- a/src/models/users.rs +++ b/src/models/users.rs @@ -452,7 +452,7 @@ impl Inbox for User { } impl Signer for User { - fn get_key_id(&self, _conn: &PgConnection) -> String { + fn get_key_id(&self) -> String { format!("{}#main-key", self.ap_url) }