diff --git a/webapp_utils.py b/webapp_utils.py index d4c9e625a..73571db76 100644 --- a/webapp_utils.py +++ b/webapp_utils.py @@ -2068,8 +2068,13 @@ def html_following_dropdown(base_dir: str, nickname: str, foll_nick + '@' + foll_domain) domain_sorted_list.sort() + prev_foll_domain = '' for following_line in domain_sorted_list: following_address = following_line.split(' ')[1] + foll_domain, _ = get_domain_from_actor(following_address) + if prev_foll_domain and prev_foll_domain != foll_domain: + list_str += '\n' + prev_foll_domain = foll_domain list_str += '\n' list_str += '\n'