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