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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user