X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapub%2Fsrc%2Fobjects%2Fcommunity.rs;h=300ad2f2c093cfdfb7be2222404ca1a6ffe38777;hb=05d43150bcc81a3403fe08e6c9a2d74de4eca9b4;hp=d8bc837fb3d1d6155be6964e37d8739b98faca47;hpb=209829e1f325867dc467045a6fdd6d176b1118d1;p=lemmy.git diff --git a/crates/apub/src/objects/community.rs b/crates/apub/src/objects/community.rs index d8bc837f..300ad2f2 100644 --- a/crates/apub/src/objects/community.rs +++ b/crates/apub/src/objects/community.rs @@ -163,7 +163,7 @@ impl ActorType for ApubCommunity { fn actor_id(&self) -> Url { self.actor_id.to_owned().into() } - fn public_key(&self) -> Option { + fn public_key(&self) -> String { self.public_key.to_owned() } fn private_key(&self) -> Option { @@ -244,7 +244,6 @@ pub(crate) mod tests { let community = parse_lemmy_community(&context).await; assert_eq!(community.title, "Ten Forward"); - assert!(community.public_key.is_some()); assert!(!community.local); assert_eq!(community.description.as_ref().unwrap().len(), 132);