FIX: add http:// to feed_polling_url if it's missing

This commit is contained in:
Neil Lalonde 2014-08-19 17:51:14 -04:00
parent f8ae2f5378
commit 4e857bfa12

View file

@ -49,6 +49,7 @@ module Jobs
def initialize def initialize
@feed_url = SiteSetting.feed_polling_url @feed_url = SiteSetting.feed_polling_url
@feed_url = "http://#{@feed_url}" if @feed_url !~ /^https?\:\/\//
end end
def topics def topics