Only show page navigation on hashtag if it is available

main
Bob Mottram 2023-01-06 10:48:56 +00:00
parent 78a7c7f395
commit 1a09c5887d
1 changed files with 2 additions and 2 deletions

View File

@ -1136,7 +1136,7 @@ def html_hashtag_search_remote(nickname: str, domain: str, port: int,
tag_link = '/users/' + nickname + '?remotetag=' + \ tag_link = '/users/' + nickname + '?remotetag=' + \
hashtag_url.replace('/', '--') hashtag_url.replace('/', '--')
if page_number > 1: if page_number > 1 and hashtag_json.get('first'):
# previous page link # previous page link
hashtag_search_form += \ hashtag_search_form += \
' <center>\n' + \ ' <center>\n' + \
@ -1228,7 +1228,7 @@ def html_hashtag_search_remote(nickname: str, domain: str, port: int,
if post_str: if post_str:
hashtag_search_form += separator_str + post_str hashtag_search_form += separator_str + post_str
if len(lines) >= 5: if len(lines) >= 5 and hashtag_json.get('first'):
# next page link # next page link
hashtag_search_form += \ hashtag_search_form += \
' <center>\n' + \ ' <center>\n' + \