mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-11 07:49:28 -05:00
Log user that is making /publicRooms calls
This commit is contained in:
parent
1fd6eb695d
commit
efeabd3180
@ -279,6 +279,13 @@ class PublicRoomListRestServlet(ClientV1RestServlet):
|
|||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def on_GET(self, request):
|
def on_GET(self, request):
|
||||||
|
try:
|
||||||
|
yield self.auth.get_user_by_req(request)
|
||||||
|
except AuthError:
|
||||||
|
# This endpoint isn't authed, but its useful to know who's hitting
|
||||||
|
# it if they *do* supply an access token
|
||||||
|
pass
|
||||||
|
|
||||||
handler = self.hs.get_room_list_handler()
|
handler = self.hs.get_room_list_handler()
|
||||||
data = yield handler.get_aggregated_public_room_list()
|
data = yield handler.get_aggregated_public_room_list()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user