From 4ee6b4d06dd9548102988e10122c325b80009e40 Mon Sep 17 00:00:00 2001 From: terrtia Date: Tue, 17 Sep 2024 10:21:16 +0200 Subject: [PATCH] chg: [chat request] add other chat type + placeholders --- var/www/blueprints/chats_explorer.py | 2 +- .../templates/chats_explorer/request_chat_monitoring.html | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/var/www/blueprints/chats_explorer.py b/var/www/blueprints/chats_explorer.py index 56f21b4f..342f67e4 100644 --- a/var/www/blueprints/chats_explorer.py +++ b/var/www/blueprints/chats_explorer.py @@ -231,7 +231,7 @@ def chat_monitoring_request(): username = request.form.get('username') invite = request.form.get('invite') description = request.form.get('description') - if chat_type not in ['discord', 'telegram']: + if chat_type not in ['discord', 'telegram', 'other']: return create_json_response({"status": "error", "reason": "Invalid Chat Type"}, 400) if not username and not invite and not description: return create_json_response({"status": "error", "reason": "Please provide a username/username/invite/comment"}, 400) diff --git a/var/www/templates/chats_explorer/request_chat_monitoring.html b/var/www/templates/chats_explorer/request_chat_monitoring.html index 8f271cfb..2494b8c3 100644 --- a/var/www/templates/chats_explorer/request_chat_monitoring.html +++ b/var/www/templates/chats_explorer/request_chat_monitoring.html @@ -46,21 +46,22 @@

Chat Monitoring Request {{ uuid }} Created

- +
- +
- +