forked from MirrorHub/synapse
Ensure an auth instance is available to ListMediaInRoom (#5967)
* Ensure an auth instance is available to ListMediaInRoom Fixes https://github.com/matrix-org/synapse/issues/5737 * Changelog
This commit is contained in:
parent
8401bcd206
commit
0eac7077c9
2 changed files with 2 additions and 0 deletions
1
changelog.d/5967.bugfix
Normal file
1
changelog.d/5967.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Fix list media admin API always returning an error.
|
|
@ -60,6 +60,7 @@ class ListMediaInRoom(RestServlet):
|
||||||
|
|
||||||
def __init__(self, hs):
|
def __init__(self, hs):
|
||||||
self.store = hs.get_datastore()
|
self.store = hs.get_datastore()
|
||||||
|
self.auth = hs.get_auth()
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def on_GET(self, request, room_id):
|
def on_GET(self, request, room_id):
|
||||||
|
|
Loading…
Reference in a new issue