Fix relative Atom paths (for GitHub at least, might break others?)

This commit is contained in:
2017-11-10 07:32:30 -05:00
parent dda2e67984
commit 040867492e

View File

@@ -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;