Actually use the activity_pub::inbox::Notify trait for notifications

It won't work for local events until we use AP internally too
This commit is contained in:
Bat
2018-06-17 20:37:10 +01:00
parent 2a34b7909a
commit 0ea8c882ad
7 changed files with 93 additions and 73 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
use activitypub::{
Activity, Object,
Object,
activity::{Create, Like, Undo}
};
use diesel::PgConnection;
@@ -40,7 +40,7 @@ pub trait FromActivity<T: Object>: Sized {
}
}
pub trait Notify<T: Activity> {
pub trait Notify<T: Object> {
fn notify(conn: &PgConnection, act: T, actor: Id);
}