mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 07:54:59 -04:00
Merge pull request #9361 from matrix-org/babolivier/third_party_validation
Remove unneeded type constraints on 3rd party protocol lookup responses
This commit is contained in:
commit
fb0e14ee9a
2 changed files with 1 additions and 3 deletions
1
changelog.d/9361.bugfix
Normal file
1
changelog.d/9361.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Fix a bug causing Synapse to impose the wrong type constraints on fields when processing responses from appservices to `/_matrix/app/v1/thirdparty/user/{protocol}`.
|
|
@ -76,9 +76,6 @@ def _is_valid_3pe_result(r, field):
|
||||||
fields = r["fields"]
|
fields = r["fields"]
|
||||||
if not isinstance(fields, dict):
|
if not isinstance(fields, dict):
|
||||||
return False
|
return False
|
||||||
for k in fields.keys():
|
|
||||||
if not isinstance(fields[k], str):
|
|
||||||
return False
|
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue