forked from indymedia/epicyon
Unquote hashtags
parent
b435af8d76
commit
e8f4b35630
|
@ -8,6 +8,7 @@ __status__ = "Production"
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
import urllib.parse
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from datetime import date
|
from datetime import date
|
||||||
|
@ -500,6 +501,7 @@ def htmlHashtagSearch(nickname: str, domain: str, port: int,
|
||||||
"""
|
"""
|
||||||
if hashtag.startswith('#'):
|
if hashtag.startswith('#'):
|
||||||
hashtag = hashtag[1:]
|
hashtag = hashtag[1:]
|
||||||
|
hashtag = urllib.parse.unquote(hashtag)
|
||||||
hashtagIndexFile = baseDir + '/tags/' + hashtag + '.txt'
|
hashtagIndexFile = baseDir + '/tags/' + hashtag + '.txt'
|
||||||
if not os.path.isfile(hashtagIndexFile):
|
if not os.path.isfile(hashtagIndexFile):
|
||||||
print('WARN: hashtag file not found ' + hashtagIndexFile)
|
print('WARN: hashtag file not found ' + hashtagIndexFile)
|
||||||
|
|
Loading…
Reference in New Issue