Make ty happy
This commit is contained in:
@@ -30,7 +30,16 @@ async def news_stats(event):
|
||||
|
||||
@citadel.route("/_matrix/client/r0/citadel/rooms/<room>/closeRoom", methods=["POST"])
|
||||
async def close_room(room):
|
||||
store_response = request.json.get("store_response", True)
|
||||
req = request.json
|
||||
|
||||
if (
|
||||
isinstance(req, dict)
|
||||
and "store_response" in req
|
||||
and isinstance(req["store_response"], bool)
|
||||
):
|
||||
store_response = req["store_response"]
|
||||
else:
|
||||
store_response = True
|
||||
|
||||
operation_id = base64.b64encode(
|
||||
bytes(
|
||||
|
||||
Reference in New Issue
Block a user