Prevent duplication of mention on post update
and delete mentions and notifications of user no longer mentioned
This commit is contained in:
committed by
Baptiste Gelez
parent
1689813df4
commit
2523f3b523
@@ -106,4 +106,8 @@ impl Notification {
|
||||
});
|
||||
json
|
||||
}
|
||||
|
||||
pub fn delete(&self, conn: &Connection) {
|
||||
diesel::delete(self).execute(conn).expect("Notification::delete: notification deletion error");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user