Remove "." from terms to avoid hashtags terminating early

This commit is contained in:
Steinar Bang
2020-07-05 08:42:48 +01:00
parent f804a5ea57
commit 8749618a8a

View File

@ -65,7 +65,7 @@ def get_feed(feed_url, last_update):
def get_entry(entry): def get_entry(entry):
hashtags = [] hashtags = []
for tag in entry.get('tags', []): for tag in entry.get('tags', []):
t = tag['term'].replace(' ', '_') t = tag['term'].replace(' ', '_').replace('.', '')
hashtags.append('#{}'.format(t)) hashtags.append('#{}'.format(t))
return { return {
'url': entry.id, 'url': entry.id,