Drop activity_pub::activitypub and activity_pub::ActivityPub and only use the ActivityStream responder

This commit is contained in:
Bat
2018-06-21 18:09:18 +01:00
parent 6df4b70318
commit b2e8d54161
6 changed files with 29 additions and 57 deletions
+5 -1
View File
@@ -1,4 +1,4 @@
use activitypub::{Actor, Object, collection::OrderedCollection};
use activitypub::{Actor, Object, actor::Group, collection::OrderedCollection};
use reqwest::{
Client,
header::{Accept, qitem},
@@ -137,6 +137,10 @@ impl Blog {
})
}
pub fn into_activity(&self, _conn: &PgConnection) -> Group {
Group::default() // TODO
}
pub fn update_boxes(&self, conn: &PgConnection) {
if self.outbox_url.len() == 0 {
diesel::update(self)