mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-13 17:22:48 -05:00
Fix relative Atom paths (for GitHub at least, might break others?)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Common.Debug;
|
||||
using System;
|
||||
using Common.Debug;
|
||||
using System.Xml;
|
||||
|
||||
namespace FeedCenter.FeedParsers
|
||||
@@ -113,8 +114,9 @@ namespace FeedCenter.FeedParsers
|
||||
|
||||
if (link.StartsWith("/"))
|
||||
{
|
||||
link = Feed.Link + link;
|
||||
link = link.Replace("//", "/");
|
||||
var uri = new Uri(Feed.Link);
|
||||
|
||||
link = uri.Scheme + "://" + uri.Host + link;
|
||||
}
|
||||
|
||||
feedItem.Link = link;
|
||||
|
||||
Reference in New Issue
Block a user