From 4c3037c42da994901925a750095cb61f2d501223 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 1 Jan 2023 10:53:54 +0000 Subject: [PATCH] Visually split up domains within list --- webapp_utils.py | 5 +++++ 1 file changed, 5 insertions(+) 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'