From 766d3cf2717dcb04607473970bfaab15f5f1266c Mon Sep 17 00:00:00 2001 From: MarekWo Date: Fri, 2 Jan 2026 16:55:51 +0100 Subject: [PATCH] fix: Display clean 'Advert sent' message instead of full meshcli output --- app/routes/api.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/routes/api.py b/app/routes/api.py index 236d2a2..8bd8674 100644 --- a/app/routes/api.py +++ b/app/routes/api.py @@ -613,10 +613,16 @@ def execute_special_command(): success, message = cmd_info['function']() if success: + # Clean up advert message + if command == 'advert': + clean_message = "Advert sent" + else: + clean_message = message or f'{command} executed successfully' + return jsonify({ 'success': True, 'command': command, - 'message': message or f'{command} executed successfully' + 'message': clean_message }), 200 else: return jsonify({