ActivityPub: don't delete anything if the actor is not authorized

This commit is contained in:
Baptiste Gelez
2018-10-22 16:29:25 +01:00
parent fc5acac861
commit fcf911fac9
6 changed files with 32 additions and 13 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ pub trait Notify<C> {
pub trait Deletable<C, A> {
fn delete(&self, conn: &C) -> A;
fn delete_id(id: String, conn: &C);
fn delete_id(id: String, actor_id: String, conn: &C);
}