From 802fcd6135c9d78ab0f17dd6d1fd5a448a94787a Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Mon, 29 Jan 2018 19:20:37 -0800 Subject: deal with relative urls in feed resolution, sorta --- models/feed/feed.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'models/feed') diff --git a/models/feed/feed.go b/models/feed/feed.go index 0a043f2..70b939a 100644 --- a/models/feed/feed.go +++ b/models/feed/feed.go @@ -155,5 +155,10 @@ func ResolveFeedURL(url string) string { if f == "" { f = url } + + // if we don't start with http[s] its probably relative + if f[0] != 'h' { + f = url + f + } return f } -- cgit v1.2.3