diff --git a/lib/final_destination.rb b/lib/final_destination.rb index c3fff9dcb5..a098df3b52 100644 --- a/lib/final_destination.rb +++ b/lib/final_destination.rb @@ -267,11 +267,6 @@ class FinalDestination return true if SiteSetting.whitelist_internal_hosts.split("|").any? { |h| h.downcase == @uri.hostname.downcase } end - # Whitelisted hosts - return true if hostname_matches?(SiteSetting.s3_cdn_url) || - hostname_matches?(GlobalSetting.try(:cdn_url)) || - hostname_matches?(Discourse.base_url_no_prefix) - address_s = @opts[:lookup_ip].call(@uri.hostname) return false unless address_s diff --git a/plugins/discourse-narrative-bot/spec/discourse_narrative_bot/track_selector_spec.rb b/plugins/discourse-narrative-bot/spec/discourse_narrative_bot/track_selector_spec.rb index 43d0e07521..0e6cb7a43f 100644 --- a/plugins/discourse-narrative-bot/spec/discourse_narrative_bot/track_selector_spec.rb +++ b/plugins/discourse-narrative-bot/spec/discourse_narrative_bot/track_selector_spec.rb @@ -138,18 +138,6 @@ describe DiscourseNarrativeBot::TrackSelector do end end - context 'when a non regular post is created' do - it 'should not do anything' do - moderator_post = Fabricate(:moderator_post, user: user, topic: topic) - - expect do - described_class.new( - :reply, user, post_id: moderator_post.id - ).select - end.to_not change { Post.count } - end - end - describe 'when user thank the bot' do it 'should like the post' do post.update!(raw: 'thanks!')