FIX: remove 'crawl_images' site setting (#14646)

This commit is contained in:
Arpit Jalan
2021-10-19 17:12:29 +05:30
committed by GitHub
parent b9164d22ee
commit d1fc759ac4
19 changed files with 64 additions and 47 deletions

View File

@@ -225,7 +225,6 @@ describe SearchIndexer do
it 'should not include lightbox in search' do
Jobs.run_immediately!
SiteSetting.crawl_images = true
SiteSetting.max_image_width = 1
stub_request(:get, "https://meta.discourse.org/some.png")

View File

@@ -153,6 +153,8 @@ describe UserAnonymizer do
topic = Fabricate(:topic, user: user)
quoted_post = create_post(user: user, topic: topic, post_number: 1, raw: "quoted post")
stub_image_size
post = create_post(raw: <<~RAW)
Lorem ipsum

View File

@@ -107,6 +107,7 @@ describe UsernameChanger do
end
def create_post_and_change_username(args = {}, &block)
stub_image_size
post = create_post(args.merge(topic_id: topic.id))
args.delete(:revisions)&.each do |revision|