mirror of https://gitlab.com/bashrc2/epicyon
Check nickname
parent
a26111b0e0
commit
186c35112b
|
|
@ -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,6 +1003,7 @@ def html_hashtag_search(nickname: str, domain: str, port: int,
|
|||
hashtag_search_form += maps_str
|
||||
|
||||
# edit the category for this hashtag
|
||||
if account_dir:
|
||||
show_categories_filename: str = account_dir + '/.showCategories'
|
||||
show_categories = is_a_file(show_categories_filename)
|
||||
if show_categories and is_editor(base_dir, nickname):
|
||||
|
|
@ -1017,8 +1019,8 @@ def html_hashtag_search(nickname: str, domain: str, port: int,
|
|||
' <input type="text" style="width: 20ch" ' + \
|
||||
'name="hashtagCategory" value="' + category + '">\n'
|
||||
hashtag_search_form += \
|
||||
' <button type="submit" class="button" name="submitYes">' + \
|
||||
translate['Publish'] + '</button>\n'
|
||||
' <button type="submit" class="button" ' + \
|
||||
'name="submitYes">' + translate['Publish'] + '</button>\n'
|
||||
hashtag_search_form += ' </center>\n'
|
||||
hashtag_search_form += ' </form>\n'
|
||||
hashtag_search_form += '</div>\n'
|
||||
|
|
|
|||
Loading…
Reference in New Issue