mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
refactor: Fix errors in api/server/event.rs
This commit is contained in:
@@ -51,12 +51,12 @@ pub(crate) async fn get_event_route(
|
|||||||
return Err!(Request(NotFound("This server is not participating in that room.")));
|
return Err!(Request(NotFound("This server is not participating in that room.")));
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(get_event::v1::Response {
|
Ok(get_event::v1::Response::new(
|
||||||
origin: services.globals.server_name().to_owned(),
|
services.globals.server_name().to_owned(),
|
||||||
origin_server_ts: MilliSecondsSinceUnixEpoch::now(),
|
MilliSecondsSinceUnixEpoch::now(),
|
||||||
pdu: services
|
services
|
||||||
.sending
|
.sending
|
||||||
.convert_to_outgoing_federation_event(event)
|
.convert_to_outgoing_federation_event(event)
|
||||||
.await,
|
.await,
|
||||||
})
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user