mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 00:35:41 +08:00
FIX: Don't make topics visible unless the posts are regular
This commit is contained in:
parent
98729c8e6e
commit
e997a1f315
@ -419,6 +419,7 @@ class PostCreator
|
|||||||
return unless SiteSetting.embed_unlisted?
|
return unless SiteSetting.embed_unlisted?
|
||||||
return unless @post.post_number > 1
|
return unless @post.post_number > 1
|
||||||
return if @post.topic.visible?
|
return if @post.topic.visible?
|
||||||
|
return if @post.post_type != Post.types[:regular]
|
||||||
|
|
||||||
if embed = @post.topic.topic_embed
|
if embed = @post.topic.topic_embed
|
||||||
@post.topic.update_status('visible', true, @user)
|
@post.topic.update_status('visible', true, @user)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user