diff options
author | Felix <me@nutomic.com> | 2020-04-29 16:51:25 +0200 |
---|---|---|
committer | Felix <me@nutomic.com> | 2020-04-29 16:51:25 +0200 |
commit | c43f06124a00f3af8559d849541c2b84d3383f13 (patch) | |
tree | 0f850596a52cdfa77bff0eb620056432558af8b0 /server/src/apub/user.rs | |
parent | 0c0c68398609d549a757a9c3a26ce2311075fa38 (diff) |
Address comments, implement delete for posts and comments
Diffstat (limited to 'server/src/apub/user.rs')
-rw-r--r-- | server/src/apub/user.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/src/apub/user.rs b/server/src/apub/user.rs index 36147f7a..7426efd5 100644 --- a/server/src/apub/user.rs +++ b/server/src/apub/user.rs @@ -9,7 +9,7 @@ impl ToApub for User_ { type Response = PersonExt; // Turn a Lemmy Community into an ActivityPub group that can be sent out over the network. - fn to_apub(&self, _conn: &PgConnection) -> Result<ResponseOrTombstone<PersonExt>, Error> { + fn to_apub(&self, _conn: &PgConnection) -> Result<PersonExt, Error> { // TODO go through all these to_string and to_owned() let mut person = Person::default(); let oprops: &mut ObjectProperties = person.as_mut(); @@ -41,9 +41,7 @@ impl ToApub for User_ { .set_following(self.get_following_url())? .set_liked(self.get_liked_url())?; - Ok(ResponseOrTombstone::Response( - person.extend(actor_props).extend(self.get_public_key_ext()), - )) + Ok(person.extend(actor_props).extend(self.get_public_key_ext())) } } |