Validation for searched handles

main
Bob Mottram 2022-12-31 23:12:03 +00:00
parent 18ca9aaa32
commit 4992483176
1 changed files with 6 additions and 2 deletions

View File

@ -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 += '<option>@' + following_address + '</option>\n'
if not following_address:
continue
if '@' not in following_address and \
'://' not in following_address:
continue
list_str += '<option>@' + following_address + '</option>\n'
list_str += '</datalist>\n'
return list_str