diff --git a/src/webapp_search.py b/src/webapp_search.py index 6791daee5..5dfe1286a 100644 --- a/src/webapp_search.py +++ b/src/webapp_search.py @@ -926,8 +926,9 @@ def html_hashtag_search(nickname: str, domain: str, port: int, separator_str: str = html_post_separator(base_dir, None) # check that the directory for the nickname exists - account_dir: str = acct_dir(base_dir, nickname, domain) + account_dir: str = None if nickname: + account_dir = acct_dir(base_dir, nickname, domain) if not is_a_dir(account_dir): nickname = None @@ -1002,26 +1003,27 @@ def html_hashtag_search(nickname: str, domain: str, port: int, hashtag_search_form += maps_str # edit the category for this hashtag - show_categories_filename: str = account_dir + '/.showCategories' - show_categories = is_a_file(show_categories_filename) - if show_categories and is_editor(base_dir, nickname): - category: str = get_hashtag_category(base_dir, hashtag) - hashtag_search_form += '