From 49924831767f4cf342ccd0a9bb1ef0b5e255c7f8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 31 Dec 2022 23:12:03 +0000 Subject: [PATCH] Validation for searched handles --- webapp_utils.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webapp_utils.py b/webapp_utils.py index 31ea2c4c5..baf38a747 100644 --- a/webapp_utils.py +++ b/webapp_utils.py @@ -2008,7 +2008,11 @@ def html_following_data_list(base_dir: str, nickname: str, following_list.sort() if following_list: for following_address in following_list: - if following_address: - list_str += '\n' + if not following_address: + continue + if '@' not in following_address and \ + '://' not in following_address: + continue + list_str += '\n' list_str += '\n' return list_str