Incorporate review

This commit is contained in:
Brendan Abolivier 2019-11-01 16:22:44 +00:00
parent 5598445655
commit 988d8d6507
No known key found for this signature in database
GPG key ID: 1E015C145F1916CD
7 changed files with 21 additions and 15 deletions

View file

@ -309,7 +309,7 @@ class Filter(object):
content = event.get("content", {})
# check if there is a string url field in the content for filtering purposes
contains_url = isinstance(content.get("url"), text_type)
labels = content.get(EventContentFields.Labels, [])
labels = content.get(EventContentFields.LABELS, [])
return self.check_fields(room_id, sender, ev_type, labels, contains_url)