Add support for Add activity - forward verbatim

This commit is contained in:
asonix 2022-12-13 10:35:16 -06:00
parent 9d68ccd834
commit a0dc2363f6
2 changed files with 4 additions and 1 deletions

View file

@ -33,6 +33,7 @@ pub struct PublicKey {
#[derive(Clone, Debug, Eq, Ord, PartialEq, PartialOrd, serde::Deserialize, serde::Serialize)]
#[serde(rename_all = "PascalCase")]
pub enum ValidTypes {
Add,
Accept,
Announce,
Create,

View file

@ -71,7 +71,9 @@ pub(crate) async fn route(
handle_announce(&state, &jobs, input, actor).await?
}
ValidTypes::Follow => handle_follow(&config, &jobs, input, actor).await?,
ValidTypes::Delete | ValidTypes::Update => handle_forward(&jobs, input, actor).await?,
ValidTypes::Add | ValidTypes::Delete | ValidTypes::Update => {
handle_forward(&jobs, input, actor).await?
}
ValidTypes::Undo => handle_undo(&config, &jobs, input, actor, is_connected).await?,
};