Allow / in event IDs on send_join

This commit is contained in:
2025-10-26 18:32:17 -04:00
parent ad4c5cc5d2
commit 17d5a6458e

View File

@@ -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))