forked from mirrors/relay
Add support for Add activity - forward verbatim
This commit is contained in:
parent
9d68ccd834
commit
a0dc2363f6
2 changed files with 4 additions and 1 deletions
|
@ -33,6 +33,7 @@ pub struct PublicKey {
|
||||||
#[derive(Clone, Debug, Eq, Ord, PartialEq, PartialOrd, serde::Deserialize, serde::Serialize)]
|
#[derive(Clone, Debug, Eq, Ord, PartialEq, PartialOrd, serde::Deserialize, serde::Serialize)]
|
||||||
#[serde(rename_all = "PascalCase")]
|
#[serde(rename_all = "PascalCase")]
|
||||||
pub enum ValidTypes {
|
pub enum ValidTypes {
|
||||||
|
Add,
|
||||||
Accept,
|
Accept,
|
||||||
Announce,
|
Announce,
|
||||||
Create,
|
Create,
|
||||||
|
|
|
@ -71,7 +71,9 @@ pub(crate) async fn route(
|
||||||
handle_announce(&state, &jobs, input, actor).await?
|
handle_announce(&state, &jobs, input, actor).await?
|
||||||
}
|
}
|
||||||
ValidTypes::Follow => handle_follow(&config, &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?,
|
ValidTypes::Undo => handle_undo(&config, &jobs, input, actor, is_connected).await?,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue