Maybe fix broken whitelist?
This commit is contained in:
@ -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)
|
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.
|
# 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):
|
if should_be_sent(reader, entry):
|
||||||
response: Response = webhook.execute()
|
response: Response = webhook.execute()
|
||||||
reader.set_entry_read(entry, True)
|
reader.set_entry_read(entry, True)
|
||||||
|
Reference in New Issue
Block a user