forked from indymedia/epicyon
debug
parent
0e87344ee7
commit
b435af8d76
|
@ -498,13 +498,15 @@ def htmlHashtagSearch(nickname: str, domain: str, port: int,
|
|||
httpPrefix: str, projectVersion: str) -> str:
|
||||
"""Show a page containing search results for a hashtag
|
||||
"""
|
||||
iconsDir = getIconsDir(baseDir)
|
||||
if hashtag.startswith('#'):
|
||||
hashtag = hashtag[1:]
|
||||
hashtagIndexFile = baseDir + '/tags/' + hashtag + '.txt'
|
||||
if not os.path.isfile(hashtagIndexFile):
|
||||
print('WARN: hashtag file not found ' + hashtagIndexFile)
|
||||
return None
|
||||
|
||||
iconsDir = getIconsDir(baseDir)
|
||||
|
||||
# check that the directory for the nickname exists
|
||||
if nickname:
|
||||
if not os.path.isdir(baseDir + '/accounts/' +
|
||||
|
|
Loading…
Reference in New Issue