2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

FEATURE: Category setting to make all topics wikis

FEATURE: Category setting to make all topics wikis
This commit is contained in:
Joe Buhlig 2016-12-18 07:38:55 -06:00
parent ddd299f4aa
commit 87251fded7
10 changed files with 29 additions and 1 deletions

View file

@ -361,6 +361,9 @@ class PostCreator
end
@post.topic_id = @topic.id
@post.topic = @topic
if @topic && @topic.category && @topic.category.all_topics_wiki
@post.wiki = true
end
end
def update_topic_stats