mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-02-13 03:28:36 -05:00
Fixed to category handling
This commit is contained in:
@@ -780,9 +780,9 @@ namespace FeedCenter
|
||||
private void HandleNewFeed(string feedUrl)
|
||||
{
|
||||
// Create and configure the new feed
|
||||
var feed = Feed.Create();
|
||||
var feed = Feed.Create(_database);
|
||||
feed.Source = feedUrl;
|
||||
feed.Category = _database.Categories.ToList().First(category => category.IsDefault);
|
||||
feed.Category = _database.Categories.First(category => category.IsDefault);
|
||||
|
||||
// Read the feed for the first time
|
||||
var feedReadResult = feed.Read(_database);
|
||||
|
||||
Reference in New Issue
Block a user