If remote hashtags are not found the redirect to the original url

main
Bob Mottram 2023-02-20 10:19:09 +00:00
parent 3e092253e7
commit 21ab522cef
2 changed files with 5 additions and 1 deletions

View File

@ -18940,7 +18940,9 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
self.server.getreq_busy = False
return
self._404()
else:
# redirect to the hashtag url
self._redirect_headers(hashtag_url, None, calling_domain)
self.server.getreq_busy = False
return

View File

@ -1103,6 +1103,8 @@ def html_hashtag_search_remote(nickname: str, domain: str, port: int,
print('No orderedItems in hashtag collection ' + str(hashtag_json))
else:
print('WARN: no hashtags returned for url ' + hashtag_url)
if not lines:
return ''
separator_str = html_post_separator(base_dir, None)