From 791385b65f5c3650d80ec88476b63190b98c3af0 Mon Sep 17 00:00:00 2001 From: Kayra Uylar <52961639+kuylar@users.noreply.github.com> Date: Wed, 27 Dec 2023 22:22:35 +0300 Subject: [PATCH] Fix the RSS feed not filtering with NOTIFICATIONS_ON (#110) --- LightTube/Controllers/FeedController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LightTube/Controllers/FeedController.cs b/LightTube/Controllers/FeedController.cs index 856db030..03df4fae 100644 --- a/LightTube/Controllers/FeedController.cs +++ b/LightTube/Controllers/FeedController.cs @@ -47,7 +47,7 @@ public async Task RssFeed() string password = secretDecoded.Split(':')[1]; DatabaseUser? user = await DatabaseManager.Users.GetUserFromUsernamePassword(username, password); if (user is null) throw new Exception(); - FeedVideo[] feedVideos = await YoutubeRSS.GetMultipleFeeds(user.Subscriptions.Keys); + FeedVideo[] feedVideos = await YoutubeRSS.GetMultipleFeeds(user.Subscriptions.Where(x => x.Value == SubscriptionType.NOTIFICATIONS_ON).Select(x => x.Key)); XmlDocument document = new(); XmlElement rss = document.CreateElement("rss");