Increase security and reformat
This commit is contained in:
@@ -83,7 +83,9 @@ def ensure_default_source_for_chat(
|
||||
message=None,
|
||||
):
|
||||
service_key = str(service or "").strip().lower()
|
||||
normalized_identifier = normalize_channel_identifier(service_key, channel_identifier)
|
||||
normalized_identifier = normalize_channel_identifier(
|
||||
service_key, channel_identifier
|
||||
)
|
||||
variants = channel_variants(service_key, normalized_identifier)
|
||||
if not service_key or not variants:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user