1
0

fix the check for whether is_url to match all the other ones in codebase

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2018-06-17 11:33:57 +01:00
parent f386632800
commit c7e2c01248

View File

@@ -351,7 +351,12 @@ class Filter(object):
room_id = event.get("room_id", None)
ev_type = event.get("type", None)
is_url = "url" in event.get("content", {})
content = event.get("content", {})
is_url = (
"url" in content
and isinstance(content["url"], basestring)
)
return self.check_fields(
room_id,