Skip to content

Commit

Permalink
Merge pull request #20 from hmlendea/fix
Browse files Browse the repository at this point in the history
Fixed footer tags runtime error
  • Loading branch information
hmlendea committed Dec 25, 2022
2 parents 2446ed2 + d9bcb0d commit c12f2df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mastodon-rss-bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@
all_tags_to_add = ''
dynamic_tags_to_add = dynamic_tags.get(toot_body)

all_tags_to_add += ' ' + tags_to_add if tags_to_add else None
all_tags_to_add += ' ' + dynamic_tags_to_add if dynamic_tags_to_add else None
if tags_to_add: all_tags_to_add += ' ' + tags_to_add
if dynamic_tags_to_add: all_tags_to_add += ' ' + dynamic_tags_to_add

if tags_to_add != '':
if all_tags_to_add != '':
filtered_tags_to_add = ''

for tag in all_tags_to_add.split(' '):
Expand Down

0 comments on commit c12f2df

Please sign in to comment.