mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-21 03:08:40 -04:00
Incorporate review
This commit is contained in:
parent
5598445655
commit
988d8d6507
7 changed files with 21 additions and 15 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue