diff --git a/webapp_create_post.py b/webapp_create_post.py index 7da6795ca..a453d0a48 100644 --- a/webapp_create_post.py +++ b/webapp_create_post.py @@ -1025,7 +1025,8 @@ def html_new_post(edit_post_params: {}, ' \n' new_post_form += \ - html_following_data_list(base_dir, nickname, domain, domain_full) + html_following_data_list(base_dir, nickname, domain, domain_full, + 'following') new_post_form += '' selected_str = '' diff --git a/webapp_profile.py b/webapp_profile.py index e01576a08..ce55e2ba3 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -63,6 +63,7 @@ from filters import is_filtered from follow import is_follower_of_person from follow import get_follower_domains from webapp_frontscreen import html_front_screen +from webapp_utils import html_following_data_list from webapp_utils import edit_number_field from webapp_utils import html_keyboard_navigation from webapp_utils import html_hide_from_screen_reader @@ -1098,6 +1099,28 @@ def html_profile(signing_priv_key_pem: str, profile_str += ' ' profile_str += '' + # search for following or followers + if authorized: + if selected in ('following', 'followers'): + follow_search_str = '
\n' + follow_search_str += \ + '
\n' + follow_search_str += \ + ' \n' + follow_search_str += \ + ' \n' + follow_search_str += \ + html_following_data_list(base_dir, nickname, domain, + domain_full, selected) + follow_search_str += \ + ' \n' + follow_search_str += '
\n
\n' + profile_str += follow_search_str + # start of #timeline profile_str += '
\n' diff --git a/webapp_utils.py b/webapp_utils.py index 27f730947..600e3bddd 100644 --- a/webapp_utils.py +++ b/webapp_utils.py @@ -1971,7 +1971,7 @@ def get_default_path(media_instance: bool, blogs_instance: bool, def html_following_data_list(base_dir: str, nickname: str, domain: str, domain_full: str, - following_type: str = "following") -> str: + following_type: str) -> str: """Returns a datalist of handles being followed followingHandles, followersHandles """