Capitalize hashtag

main
Bob Mottram 2022-07-18 14:31:51 +01:00
parent aea6b36cea
commit 877ae73fed
2 changed files with 3 additions and 3 deletions

View File

@ -1162,7 +1162,7 @@ def add_html_tags(base_dir: str, http_prefix: str,
max_word_length = 40
content = content.replace('\r', '')
content = content.replace('\n', ' --linebreak-- ')
content = _add_music_tag(content, 'nowplaying')
content = _add_music_tag(content, 'NowPlaying')
words = _get_simplified_content(content).split(' ')
# remove . for words which are not mentions

View File

@ -15334,8 +15334,8 @@ class PubServer(BaseHTTPRequestHandler):
self.path = self.path.replace('?nodropdown', '')
# redirect music to #nowplaying list
if self.path == '/music' or self.path == '/nowplaying':
self.path = '/tags/nowplaying'
if self.path == '/music' or self.path == '/NowPlaying':
self.path = '/tags/NowPlaying'
if self.server.debug:
print('DEBUG: GET from ' + self.server.base_dir +