mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: welcome topic should not be a private message
This commit is contained in:
parent
5b4e13bfcc
commit
c74dd2fa08
@ -30,7 +30,7 @@ protected
|
|||||||
end
|
end
|
||||||
|
|
||||||
def find_welcome_post
|
def find_welcome_post
|
||||||
welcome_topic = Topic.where(slug: 'welcome-to-discourse').first
|
welcome_topic = Topic.listable_topics.where(slug: 'welcome-to-discourse').first
|
||||||
return nil unless welcome_topic.present?
|
return nil unless welcome_topic.present?
|
||||||
|
|
||||||
post = welcome_topic.posts.where(post_number: 1).first
|
post = welcome_topic.posts.where(post_number: 1).first
|
||||||
|
Loading…
Reference in New Issue
Block a user