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 guildId to rssFeeds collection schema #230

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

eritbh
Copy link
Member

@eritbh eritbh commented Aug 17, 2022

Stores the guild where RSS feeds were created and filters by that guild (or, in DMs, the ID of the channel) when listing and deleting feeds. This fixes a bug where feeds would be exposed across servers, which we never encountered because nobody else uses this bot.

This will require manual migration of existing feeds after merging - for each existing feed, fetch the feed's channel and put its guild ID back into the object.

@eritbh eritbh added the bug Something isn't working label Aug 17, 2022
@eritbh eritbh requested a review from a team as a code owner August 17, 2022 02:49
Copy link
Contributor

@mushroom-disaster mushroom-disaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems different spellings have been used for guild ID in the migration and commands. guildID in the migration and guildId in the commands which causes them to fail

@eritbh
Copy link
Member Author

eritbh commented Oct 28, 2022

Review should be addressed now, don't mind me taking 2 months to change three lines

@eritbh eritbh requested review from mushroom-disaster and a team October 28, 2022 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants