hyaenidae/profiles/src/apub/actions/follow.rs

10 lines
297 B
Rust
Raw Normal View History

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)?;
context.apub.delete_object(&self.apub_id)?;
2021-01-04 17:34:31 +00:00
Ok(())
}
}