coffeebank / coffee-maubot

Matrix bot plugins for Maubot 🍢 Add link previews, choose, and other tools to your Matrix chat ☕
https://coffeebank.github.io/coffee-maubot
11 stars 5 forks source link

Fix no results reaction #35

Open jonas-w opened 5 months ago

jonas-w commented 5 months ago

The variable count only increases when an embed was found, so this statement would've never been able to trigger.

I changed it to len(matches) as this should be intended check, to only show the reaction if there were URLs in the message, but no embeds were found.