mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
refactor: Represent route auth information in the type system
This commit is contained in:
@@ -28,7 +28,13 @@ pub(crate) async fn get_room_summary(
|
||||
let summary = services
|
||||
.rooms
|
||||
.summary
|
||||
.get_room_summary_for_user(body.sender_user.as_deref(), &room_id, &servers)
|
||||
.get_room_summary_for_user(
|
||||
body.identity
|
||||
.as_ref()
|
||||
.map(|identity| identity.sender_user()),
|
||||
&room_id,
|
||||
&servers,
|
||||
)
|
||||
.await?;
|
||||
|
||||
match summary {
|
||||
|
||||
Reference in New Issue
Block a user