diff --git a/vona/federation/__init__.py b/vona/federation/__init__.py index 998211b..e40cd6f 100644 --- a/vona/federation/__init__.py +++ b/vona/federation/__init__.py @@ -88,7 +88,7 @@ async def thumbnail_media(media_id): }), 418 -@server.route("/_matrix/federation/v1/send_join//", methods=["PUT"]) +@server.route("/_matrix/federation/v1/send_join//", 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//", methods=["PUT"]) +@server.route("/_matrix/federation/v2/send_join//", methods=["PUT"]) async def send_join_v2(room, eventId): return jsonify(send_join(request, room))