fix error
This commit is contained in:
parent
5ae52c6e5f
commit
e3dcba09b0
|
@ -220,7 +220,7 @@ class Admin::FeedsController < OrbitAdminController
|
||||||
other_site_feeds = SiteFeed.where(:remote_site_url=>/:\/\/#{::Regexp.escape(site_host)}/)
|
other_site_feeds = SiteFeed.where(:remote_site_url=>/:\/\/#{::Regexp.escape(site_host)}/)
|
||||||
other_site_feed = other_site_feeds.first
|
other_site_feed = other_site_feeds.first
|
||||||
site_feed.channel_title_translations = other_site_feed.channel_title_translations if other_site_feed
|
site_feed.channel_title_translations = other_site_feed.channel_title_translations if other_site_feed
|
||||||
other_scheme = URI(other_site_feed.remote_site_url).scheme
|
other_scheme = URI(other_site_feed.remote_site_url).scheme rescue nil
|
||||||
site_scheme = uri.scheme
|
site_scheme = uri.scheme
|
||||||
if (['http','https'] & [other_scheme, site_scheme]).count == 2
|
if (['http','https'] & [other_scheme, site_scheme]).count == 2
|
||||||
if site_scheme == 'http'
|
if site_scheme == 'http'
|
||||||
|
|
Loading…
Reference in New Issue