mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Make General the default category (#18383)
* FEATURE: Make General the default category * Set general as the default category in the composer model instead * use semicolon * Enable allow_uncategorized_topics in create_post spec helper for now * Check if general_category_id is set * Enable allow_uncategorized_topics for test env * Provide an option to the create_post helper to not set allow_uncategorized_topics * Add tests to check that category… is not present and that General is selected automatically
This commit is contained in:
@@ -68,6 +68,11 @@ Discourse::Application.configure do
|
||||
s.set_regardless_of_locale(:download_remote_images_to_local, false)
|
||||
s.set_regardless_of_locale(:unique_posts_mins, 0)
|
||||
s.set_regardless_of_locale(:max_consecutive_replies, 0)
|
||||
|
||||
# Most existing tests were written assuming allow_uncategorized_topics
|
||||
# was enabled, so we should set it to true.
|
||||
s.set_regardless_of_locale(:allow_uncategorized_topics, true)
|
||||
|
||||
# disable plugins
|
||||
if ENV['LOAD_PLUGINS'] == '1'
|
||||
s.set_regardless_of_locale(:discourse_narrative_bot_enabled, false)
|
||||
|
||||
Reference in New Issue
Block a user