From 4a265c91c37ba426418b7c70f3731c99d4c2af5d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 31 May 2020 18:36:04 +0100 Subject: [PATCH] Also search for lower case --- webinterface.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webinterface.py b/webinterface.py index 4e66d5ac5..cb74c0ef8 100644 --- a/webinterface.py +++ b/webinterface.py @@ -591,6 +591,10 @@ def htmlHashtagSearch(nickname: str, domain: str, port: int, hashtag = hashtag[1:] hashtag = urllib.parse.unquote(hashtag) hashtagIndexFile = baseDir + '/tags/' + hashtag + '.txt' + if not os.path.isfile(hashtagIndexFile): + if hashtag != hashtag.lower(): + hashtag = hashtag.lower() + hashtagIndexFile = baseDir + '/tags/' + hashtag + '.txt' if not os.path.isfile(hashtagIndexFile): print('WARN: hashtag file not found ' + hashtagIndexFile) return None