mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-11-26 15:32:18 +00:00
Add support for Add activity - forward verbatim
This commit is contained in:
parent
9d68ccd834
commit
a0dc2363f6
|
@ -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 New Issue
Block a user