fix: actually hook up all outbox actions
This commit is contained in:
parent
73f178462f
commit
867740b2e6
1 changed files with 11 additions and 2 deletions
|
@ -75,8 +75,8 @@ pub async fn post(
|
|||
Some(BaseType::Object(ObjectType::Activity(ActivityType::Follow))) =>
|
||||
Ok(CreationResult(ctx.follow(uid, activity).await?)),
|
||||
|
||||
Some(BaseType::Object(ObjectType::Activity(ActivityType::Undo))) =>
|
||||
Ok(CreationResult(ctx.undo(uid, activity).await?)),
|
||||
Some(BaseType::Object(ObjectType::Activity(ActivityType::Announce))) =>
|
||||
Ok(CreationResult(ctx.announce(uid, activity).await?)),
|
||||
|
||||
Some(BaseType::Object(ObjectType::Activity(ActivityType::Accept(AcceptType::Accept)))) =>
|
||||
Ok(CreationResult(ctx.accept(uid, activity).await?)),
|
||||
|
@ -84,6 +84,15 @@ pub async fn post(
|
|||
Some(BaseType::Object(ObjectType::Activity(ActivityType::Reject(RejectType::Reject)))) =>
|
||||
Ok(CreationResult(ctx.reject(uid, activity).await?)),
|
||||
|
||||
Some(BaseType::Object(ObjectType::Activity(ActivityType::Undo))) =>
|
||||
Ok(CreationResult(ctx.undo(uid, activity).await?)),
|
||||
|
||||
Some(BaseType::Object(ObjectType::Activity(ActivityType::Delete))) =>
|
||||
Ok(CreationResult(ctx.delete(uid, activity).await?)),
|
||||
|
||||
Some(BaseType::Object(ObjectType::Activity(ActivityType::Update))) =>
|
||||
Ok(CreationResult(ctx.update(uid, activity).await?)),
|
||||
|
||||
Some(_) => Err(StatusCode::NOT_IMPLEMENTED.into()),
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue