mirror of https://gitlab.com/bashrc2/epicyon
If remote hashtags are not found the redirect to the original url
parent
3e092253e7
commit
21ab522cef
|
@ -18940,7 +18940,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self._write(msg)
|
self._write(msg)
|
||||||
self.server.getreq_busy = False
|
self.server.getreq_busy = False
|
||||||
return
|
return
|
||||||
self._404()
|
else:
|
||||||
|
# redirect to the hashtag url
|
||||||
|
self._redirect_headers(hashtag_url, None, calling_domain)
|
||||||
self.server.getreq_busy = False
|
self.server.getreq_busy = False
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
@ -1103,6 +1103,8 @@ def html_hashtag_search_remote(nickname: str, domain: str, port: int,
|
||||||
print('No orderedItems in hashtag collection ' + str(hashtag_json))
|
print('No orderedItems in hashtag collection ' + str(hashtag_json))
|
||||||
else:
|
else:
|
||||||
print('WARN: no hashtags returned for url ' + hashtag_url)
|
print('WARN: no hashtags returned for url ' + hashtag_url)
|
||||||
|
if not lines:
|
||||||
|
return ''
|
||||||
|
|
||||||
separator_str = html_post_separator(base_dir, None)
|
separator_str = html_post_separator(base_dir, None)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue