Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add no-send option to config, to skip sending updates to matrix #21

Open
jfowl opened this issue Jun 30, 2021 · 0 comments
Open

Add no-send option to config, to skip sending updates to matrix #21

jfowl opened this issue Jun 30, 2021 · 0 comments

Comments

@jfowl
Copy link

jfowl commented Jun 30, 2021

We are currently migrating feeds to a different baseURL, which means that maubot-rss would recognize all items as new, because their url changed. We don't want all users to get spammed with old messages again.

https://github.com/rss2email/rss2email#using-rss2email has a --no-send flag which still logs "new" items into the database as seen, but skips sending a notification for them.

I could imagine such an option beeing useful for maubot-rss as well. If this is wanted, I would offer to implement this somewhat like this:

# bot.py line 143...
skip_broadcast = self.config["skip_broadcast"]
if not skip_broadcast:
    for entry in new_entries.values():
        await self._broadcast(feed, entry, feed.subscriptions)
else:
    self.log.debug("Skipped broadcasting new items because config option skip_broadcasting was set to True")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant