Maybe fix broken whitelist?

This commit is contained in:
2023-01-30 00:01:34 +01:00
parent 3ebed6e5ed
commit e5931b77e6

View File

@ -129,7 +129,7 @@ def send_to_discord(custom_reader: Reader | None = None, feed: Feed | None = Non
webhook: DiscordWebhook = DiscordWebhook(url=webhook_url, content=webhook_message, rate_limit_retry=True)
# Check if the feed has a whitelist, and if it does, check if the entry is whitelisted.
if feed is not None and has_white_tags(reader, feed):
if has_white_tags(reader, entry.feed):
if should_be_sent(reader, entry):
response: Response = webhook.execute()
reader.set_entry_read(entry, True)