Unquote the hashtag

main
Bob Mottram 2023-01-18 10:20:36 +00:00
parent 413b60c9e3
commit 1749cbe1a9
2 changed files with 1 additions and 2 deletions

View File

@ -18716,7 +18716,6 @@ class PubServer(BaseHTTPRequestHandler):
if ';' in hashtag_url:
hashtag_url = hashtag_url.split(';')[0]
hashtag_url = hashtag_url.replace('--', '/')
hashtag_url = urllib.parse.unquote_plus(hashtag_url)
page_number = 1
if ';page=' in self.path:

View File

@ -1082,7 +1082,7 @@ def html_hashtag_search_remote(nickname: str, domain: str, port: int,
debug: bool, buy_sites: {}) -> str:
"""Show a page containing search results for a remote hashtag
"""
hashtag = hashtag_url.split('/')[-1]
hashtag = urllib.parse.unquote(hashtag_url.split('/')[-1])
profile_str = 'https://www.w3.org/ns/activitystreams'
as_header = {