diff --git a/webapp_search.py b/webapp_search.py index c9667285d..d1dc38bfe 100644 --- a/webapp_search.py +++ b/webapp_search.py @@ -1136,7 +1136,7 @@ def html_hashtag_search_remote(nickname: str, domain: str, port: int, tag_link = '/users/' + nickname + '?remotetag=' + \ hashtag_url.replace('/', '--') - if page_number > 1: + if page_number > 1 and hashtag_json.get('first'): # previous page link hashtag_search_form += \ '
\n' + \ @@ -1228,7 +1228,7 @@ def html_hashtag_search_remote(nickname: str, domain: str, port: int, if 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 hashtag_search_form += \ '
\n' + \