Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Fix the RSS feed not filtering with NOTIFICATIONS_ON (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuylar authored Dec 27, 2023
1 parent a73a8d8 commit 791385b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LightTube/Controllers/FeedController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public async Task<IActionResult> 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");
Expand Down

0 comments on commit 791385b

Please sign in to comment.