mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Add import_embed_unlisted site setting (#26222)
This commit is contained in:
@@ -79,6 +79,7 @@ class TopicEmbed < ActiveRecord::Base
|
||||
embed_url: url,
|
||||
embed_content_sha1: content_sha1,
|
||||
}
|
||||
create_args[:visible] = false if SiteSetting.import_embed_unlisted?
|
||||
|
||||
post = PostCreator.create(user, create_args)
|
||||
post.topic.topic_embed.update!(embed_content_cache: original_contents)
|
||||
|
||||
Reference in New Issue
Block a user