Allow for comment deletion (#363)

* Allow for comment deletion

Receive and emit deletion activity
Add button to delete comment

* Remove debug print and fix copy-past typo

* Improve style of comment deletion button
This commit is contained in:
fdb-hiroshima
2018-12-23 11:13:36 +01:00
committed by GitHub
parent 0df9c4d400
commit 5c5cf36b0d
8 changed files with 86 additions and 12 deletions
+8
View File
@@ -65,6 +65,14 @@ pub trait Inbox {
actor_id.as_ref(),
&(conn, searcher),
);
Comment::delete_id(
&act.delete_props
.object_object::<Tombstone>()?
.object_props
.id_string()?,
actor_id.as_ref(),
conn,
);
Ok(())
}
"Follow" => {