summaryrefslogtreecommitdiffstats
path: root/server/src/apub/user.rs
diff options
context:
space:
mode:
authorFelix <me@nutomic.com>2020-04-29 16:51:25 +0200
committerFelix <me@nutomic.com>2020-04-29 16:51:25 +0200
commitc43f06124a00f3af8559d849541c2b84d3383f13 (patch)
tree0f850596a52cdfa77bff0eb620056432558af8b0 /server/src/apub/user.rs
parent0c0c68398609d549a757a9c3a26ce2311075fa38 (diff)
Address comments, implement delete for posts and comments
Diffstat (limited to 'server/src/apub/user.rs')
-rw-r--r--server/src/apub/user.rs6
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()))
}
}