From e8f4b3563047eb6d8d922a1415951e0331592c5d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 15 Apr 2020 10:39:30 +0100 Subject: [PATCH] Unquote hashtags --- webinterface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webinterface.py b/webinterface.py index 3d124d81..66eff57c 100644 --- a/webinterface.py +++ b/webinterface.py @@ -8,6 +8,7 @@ __status__ = "Production" import time import os +import urllib.parse from collections import OrderedDict from datetime import datetime from datetime import date @@ -500,6 +501,7 @@ def htmlHashtagSearch(nickname: str, domain: str, port: int, """ if hashtag.startswith('#'): hashtag = hashtag[1:] + hashtag = urllib.parse.unquote(hashtag) hashtagIndexFile = baseDir + '/tags/' + hashtag + '.txt' if not os.path.isfile(hashtagIndexFile): print('WARN: hashtag file not found ' + hashtagIndexFile)