mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Fix wildcard user and room ID filters
Signed-off-by: Tulir Asokan <tulir@maunium.net>
This commit is contained in:
parent
acfc71a2de
commit
535e97da7b
@ -142,12 +142,12 @@ USER_FILTER_SCHEMA = {
|
||||
|
||||
@FormatChecker.cls_checks("matrix_room_id")
|
||||
def matrix_room_id_validator(room_id: object) -> bool:
|
||||
return isinstance(room_id, str) and RoomID.is_valid(room_id)
|
||||
return isinstance(room_id, str) and (RoomID.is_valid(room_id) or room_id == "*")
|
||||
|
||||
|
||||
@FormatChecker.cls_checks("matrix_user_id")
|
||||
def matrix_user_id_validator(user_id: object) -> bool:
|
||||
return isinstance(user_id, str) and UserID.is_valid(user_id)
|
||||
return isinstance(user_id, str) and (UserID.is_valid(user_id) or user_id == "*")
|
||||
|
||||
|
||||
class Filtering:
|
||||
|
Loading…
Reference in New Issue
Block a user