Allow / in event IDs on send_join
This commit is contained in:
@@ -88,7 +88,7 @@ async def thumbnail_media(media_id):
|
||||
}), 418
|
||||
|
||||
|
||||
@server.route("/_matrix/federation/v1/send_join/<room>/<eventId>", methods=["PUT"])
|
||||
@server.route("/_matrix/federation/v1/send_join/<room>/<path:eventId>", methods=["PUT"])
|
||||
async def send_join_v1(room, eventId):
|
||||
if globals.room_version_from_id(room) not in ["1", "2"]:
|
||||
return jsonify({
|
||||
@@ -99,7 +99,7 @@ async def send_join_v1(room, eventId):
|
||||
return jsonify([200, send_join(request, room)])
|
||||
|
||||
|
||||
@server.route("/_matrix/federation/v2/send_join/<room>/<eventId>", methods=["PUT"])
|
||||
@server.route("/_matrix/federation/v2/send_join/<room>/<path:eventId>", methods=["PUT"])
|
||||
async def send_join_v2(room, eventId):
|
||||
return jsonify(send_join(request, room))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user