Skip malformed hashtags

merge-requests/30/head
Bob Mottram 2021-06-08 18:55:40 +01:00
parent 696c4ae962
commit 17ee781190
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@ def getHashtagCategoriesFeed(baseDir: str,
rssStr += ' <title>' + categoryStr + '</title>\n'
listStr = ''
for hashtag in hashtagList:
if ':' in hashtag:
continue
if '&' in hashtag:
continue
listStr += hashtag + ' '
rssStr += ' <description>' + listStr.strip() + '</description>\n'
rssStr += ' <link/>\n'