r-anime / misato

💬 Mod bot for the /r/anime Discord
MIT License
6 stars 7 forks source link

Add guildId to rssFeeds collection schema #230

Open eritbh opened 2 years ago

eritbh commented 2 years ago

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 commented 1 year ago

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