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
1 changed files with 1 additions and 0 deletions

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