Use Post::create_activity07() instead of create_activity()

This commit is contained in:
Kitaiti Makoto
2022-05-02 22:19:00 +09:00
parent 39b49c707e
commit a589435f4f
4 changed files with 14 additions and 122 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ impl<T> ActivityStream<T> {
}
}
impl<'r, O: Object> Responder<'r> for ActivityStream<O> {
impl<'r, O: serde::Serialize> Responder<'r> for ActivityStream<O> {
fn respond_to(self, request: &Request<'_>) -> Result<Response<'r>, Status> {
let mut json = serde_json::to_value(&self.0).map_err(|_| Status::InternalServerError)?;
json["@context"] = context();