mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-12-29 22:00:31 +00:00
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)]
|
||||
#[serde(rename_all = "PascalCase")]
|
||||
pub enum ValidTypes {
|
||||
Add,
|
||||
Accept,
|
||||
Announce,
|
||||
Create,
|
||||
|
|
|
@ -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?,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue