mirror of https://gitlab.com/bashrc2/epicyon
Capitalize hashtag
parent
aea6b36cea
commit
877ae73fed
|
@ -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
|
||||
|
|
|
@ -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 +
|
||||
|
|
Loading…
Reference in New Issue