Apply federation check for /publicRooms with filter list (#7367)

This commit is contained in:
Andrew Morgan 2020-04-30 11:38:07 +01:00 committed by GitHub
parent 37f6823f5b
commit 9d8ecc9e6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

1
changelog.d/7367.bugfix Normal file
View file

@ -0,0 +1 @@
Prevent non-federating rooms from appearing in responses to federated `POST /publicRoom` requests when a filter was included.

View file

@ -90,7 +90,11 @@ class RoomListHandler(BaseHandler):
logger.info("Bypassing cache as search request.")
return self._get_public_room_list(
limit, since_token, search_filter, network_tuple=network_tuple
limit,
since_token,
search_filter,
network_tuple=network_tuple,
from_federation=from_federation,
)
key = (limit, since_token, network_tuple)