mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-27 02:59:25 -05:00
We don't need to do a json.loads here
This commit is contained in:
parent
1a1e0384ef
commit
2f91d16033
@ -115,7 +115,7 @@ class RoomTopicRestServlet(RestServlet):
|
|||||||
|
|
||||||
if not data:
|
if not data:
|
||||||
raise SynapseError(404, "Topic not found.", errcode=Codes.NOT_FOUND)
|
raise SynapseError(404, "Topic not found.", errcode=Codes.NOT_FOUND)
|
||||||
defer.returnValue((200, json.loads(data.content)))
|
defer.returnValue((200, data.content))
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def on_PUT(self, request, room_id):
|
def on_PUT(self, request, room_id):
|
||||||
@ -175,7 +175,7 @@ class RoomMemberRestServlet(RestServlet):
|
|||||||
if not member:
|
if not member:
|
||||||
raise SynapseError(404, "Member not found.",
|
raise SynapseError(404, "Member not found.",
|
||||||
errcode=Codes.NOT_FOUND)
|
errcode=Codes.NOT_FOUND)
|
||||||
defer.returnValue((200, json.loads(member.content)))
|
defer.returnValue((200, member.content))
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def on_DELETE(self, request, roomid, target_user_id):
|
def on_DELETE(self, request, roomid, target_user_id):
|
||||||
|
Loading…
Reference in New Issue
Block a user