fix another silly mistake in post-poll.py for entries without emoji

This commit is contained in:
Benji Dial 2025-03-31 07:11:58 -04:00
parent 9942640e24
commit 1b9499b404

View file

@ -43,6 +43,8 @@ if len(rows) < 2:
exit(0)
def media(name, emoji):
if emoji is None:
return {'text': name}
emoji_obj = {'id': emoji} if emoji.isascii() and emoji.isdigit() else {'name': emoji}
return {'text': name, 'emoji': emoji_obj}