fix error

This commit is contained in:
邱博亞 2022-09-01 11:13:01 +08:00
parent 5ae52c6e5f
commit e3dcba09b0
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ class Admin::FeedsController < OrbitAdminController
other_site_feeds = SiteFeed.where(:remote_site_url=>/:\/\/#{::Regexp.escape(site_host)}/)
other_site_feed = other_site_feeds.first
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
if (['http','https'] & [other_scheme, site_scheme]).count == 2
if site_scheme == 'http'