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:
parent
ddd299f4aa
commit
87251fded7
10 changed files with 29 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue