log error for /publicRooms requests, simplify it a bit

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-12 19:20:15 -04:00 committed by June
parent 9b5c8c124e
commit e5307d44ca
3 changed files with 25 additions and 22 deletions

View file

@ -265,6 +265,7 @@ where
}
},
AuthScheme::None => match parts.uri.path() {
// TOOD: can we do a better check here?
// allow_public_room_directory_without_auth
"/_matrix/client/v3/publicRooms" | "/_matrix/client/r0/publicRooms" => {
if !services()