Handle reshares from AP

This commit is contained in:
Bat
2018-05-23 18:09:59 +01:00
parent 9b98a45f2e
commit c0d1a914c4
2 changed files with 17 additions and 2 deletions
+3 -1
View File
@@ -438,7 +438,9 @@ impl WithInbox for User {
impl Inbox for User {
fn received(&self, conn: &PgConnection, act: serde_json::Value) {
self.save(conn, act.clone()).unwrap();
if let Err(err) = self.save(conn, act.clone()) {
println!("Inbox error:\n{}\n{}", err.cause(), err.backtrace());
}
// Notifications
match act["type"].as_str().unwrap() {