2021-01-04 17:41:34 +00:00
|
|
|
use crate::{apub::actions::DeleteFollow, Action, Context, Error};
|
2021-01-04 17:34:31 +00:00
|
|
|
|
|
|
|
impl Action for DeleteFollow {
|
|
|
|
fn perform(&self, context: &Context) -> Result<(), Error> {
|
|
|
|
context.store.view.follows.remove(self.follow_id)?;
|
2021-01-05 03:13:06 +00:00
|
|
|
context.apub.delete_object(&self.apub_id)?;
|
2021-01-04 17:34:31 +00:00
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
}
|