A platform for community discussion. Free, open, simple.
Embedded topics are now unlisted by default
Robin Ward80a5482f28ec
diff --git a/config/site_settings.yml b/config/site_settings.ymlindex cf284b67d2f..a6902116162 100644--- a/config/site_settings.yml+++ b/config/site_settings.yml@@ -939,7 +939,7 @@ posting:embed_any_origin: falseembed_topics_list: falseembed_set_canonical_url: false- embed_unlisted: false+ embed_unlisted: trueembed_truncate: trueembed_support_markdown: falseallowed_embed_selectors: ""diff --git a/spec/models/topic_embed_spec.rb b/spec/models/topic_embed_spec.rbindex 48df6ce768f..d3dc1567b1a 100644--- a/spec/models/topic_embed_spec.rb+++ b/spec/models/topic_embed_spec.rb@@ -41,7 +41,7 @@ describe TopicEmbed doexpect(TopicEmbed.where(topic_id: post.topic_id)).to be_presentexpect(post.topic.category).to eq(embeddable_host.category)- expect(post.topic).to be_visible+ expect(post.topic).not_to be_visibleendit "Supports updating the post content" do@@ -88,6 +88,13 @@ describe TopicEmbed dopc.createexpect(imported_post.topic.reload).to be_visibleend++ it "won't be invisible if `embed_unlisted` is set to false" do+ Jobs.run_immediately!+ SiteSetting.embed_unlisted = false+ imported_post = TopicEmbed.import(user, "http://eviltrout.com/abcd", title, "some random content")+ expect(imported_post.topic).to be_visible+ endendcontext "post creation supports markdown rendering" do