mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: change off to disabled for fast_typing_threshold setting (#31077)
Bug introduced in migration in this PR - https://github.com/discourse/discourse/pull/30865/files#diff-ca17f6d1353d626d1664a3d55fcc7aed3c6e4587a0269cb264aa2c25c3264013R14 When the old setting was `0` then the value `for fast_typing_threshold` should be `disabled` instead of `off`. Because of that mistake, new users cannot create a topic when the `min_first_post_typing_time` value was `0`.
This commit is contained in:
committed by
GitHub
parent
7e6107aad7
commit
33fe79be6a
@@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class FixIncorrectFastTypingThresholdSetting < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
execute "UPDATE site_settings SET value = 'disabled' WHERE name = 'fast_typing_threshold' AND value = 'off'"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user