From be4638706c5e70bb5a9db9c8b19b197a8f610e3f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 23 Aug 2022 15:14:15 +0100 Subject: [PATCH] When searching for hashtags, don't force lower case --- daemon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index c18eed448..5abe4bb91 100644 --- a/daemon.py +++ b/daemon.py @@ -3853,7 +3853,10 @@ class PubServer(BaseHTTPRequestHandler): search_str = search_str.split('&')[0] search_str = \ urllib.parse.unquote_plus(search_str.strip()) - search_str = search_str.lower().strip() + search_str = search_str.strip() + # hashtags can be combined case + if not search_str.startswith('#'): + search_str = search_str.lower() print('search_str: ' + search_str) if search_for_emoji: search_str = ':' + search_str + ':'