]> Untitled Git - lemmy.git/blobdiff - crates/apub/src/fetcher/user_or_community.rs
Diesel 2.0.0 upgrade (#2452)
[lemmy.git] / crates / apub / src / fetcher / user_or_community.rs
index 16a74c2e51db0aecd859f71c722e2dd18f71e10c..da23ad59a180a85395d27aa9f325e12fa8f4b014 100644 (file)
@@ -2,7 +2,7 @@ use crate::{
   objects::{community::ApubCommunity, person::ApubPerson},
   protocol::objects::{group::Group, person::Person},
 };
-use activitypub_federation::{core::inbox::ActorPublicKey, traits::ApubObject};
+use activitypub_federation::traits::{Actor, ApubObject};
 use chrono::NaiveDateTime;
 use lemmy_utils::error::LemmyError;
 use lemmy_websocket::LemmyContext;
@@ -22,7 +22,7 @@ pub enum PersonOrGroup {
   Group(Group),
 }
 
-#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
+#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)]
 pub enum PersonOrGroupType {
   Person,
   Group,
@@ -102,11 +102,15 @@ impl ApubObject for UserOrCommunity {
   }
 }
 
-impl ActorPublicKey for UserOrCommunity {
+impl Actor for UserOrCommunity {
   fn public_key(&self) -> &str {
     match self {
       UserOrCommunity::User(p) => p.public_key(),
       UserOrCommunity::Community(p) => p.public_key(),
     }
   }
+
+  fn inbox(&self) -> Url {
+    unimplemented!()
+  }
 }