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

$feed_title in posts does not match content of title field in feed database #49

Open
tux93 opened this issue Mar 21, 2023 · 3 comments
Open

Comments

@tux93
Copy link

tux93 commented Mar 21, 2023

My use case is the following: I have subscribed to a feed but want to customize the title shown when new posts are sent.

To do this I tried to modify the 'title' field in the 'feed' database, but new posts are still sent with the title that was set when subscribing, my notification_template looks like this: New post from $feed_title:<br/>$link

@tulir
Copy link
Member

tulir commented Mar 21, 2023

The title is probably always the real feed title, not the one in the database. You can just type a custom title in the template itself rather than using the variable

@tux93
Copy link
Author

tux93 commented Mar 21, 2023

You can just type a custom title in the template itself rather than using the variable

True, but is the expectation that the variable matches the database unreasonable?

@tulir
Copy link
Member

tulir commented Mar 21, 2023

Yes, the database is just a cache used for !rss subscriptions and other cases where the bot doesn't re-fetch the feed. When broadcasting new entries, the bot has just re-fetched the feed, so it has the latest feed info and has no reason to use cached data.

It should probably also update the database if it doesn't match though 🤔

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

2 participants