Return "202 Accepted" when activity is accepted by inbox endpoint
This commit is contained in:
parent
f55431f8b8
commit
70455e5eeb
2 changed files with 4 additions and 3 deletions
|
@ -9,7 +9,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Use proof suites with prefix `Mitra`.
|
- Use proof suites with prefix `Mitra`.
|
||||||
- Add `https://w3id.org/security/data-integrity/v1` to JSON-LD context.
|
- Added `https://w3id.org/security/data-integrity/v1` to JSON-LD context.
|
||||||
|
- Return `202 Accepted` when activity is accepted by inbox endpoint.
|
||||||
|
|
||||||
## [1.12.0] - 2023-01-26
|
## [1.12.0] - 2023-01-26
|
||||||
|
|
||||||
|
|
|
@ -121,7 +121,7 @@ async fn inbox(
|
||||||
);
|
);
|
||||||
error
|
error
|
||||||
})?;
|
})?;
|
||||||
Ok(HttpResponse::Ok().finish())
|
Ok(HttpResponse::Accepted().finish())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
|
@ -304,7 +304,7 @@ async fn instance_actor_inbox(
|
||||||
"received in instance inbox: {}",
|
"received in instance inbox: {}",
|
||||||
activity["type"].as_str().unwrap_or("Unknown"),
|
activity["type"].as_str().unwrap_or("Unknown"),
|
||||||
);
|
);
|
||||||
Ok(HttpResponse::Ok().finish())
|
Ok(HttpResponse::Accepted().finish())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn instance_actor_scope() -> Scope {
|
pub fn instance_actor_scope() -> Scope {
|
||||||
|
|
Loading…
Reference in a new issue