mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 12:17:49 +08:00
FEATURE: Use new hashtag autocomplete system on all sites (#21788)
Followup to: *7c97548159
*0b3cf83e3c
*eae47d82e2
This commit enables the no-longer-experimental hashtag autocomplete changes for all sites. It is now at a point where it is ready to be promoted to the only way, and following this commit all old hashtag code will be deleted c.f. https://meta.discourse.org/t/hashtags-are-getting-a-makeover/248866
This commit is contained in:
parent
69eecf92d0
commit
44446afe58
|
@ -2090,6 +2090,7 @@ developer:
|
|||
enable_experimental_hashtag_autocomplete:
|
||||
default: true
|
||||
client: true
|
||||
hidden: true
|
||||
experimental_hashtag_search_result_limit:
|
||||
default: 20
|
||||
client: true
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class EnableExperimentalHashtagAutocompleteTrueForAllSites < ActiveRecord::Migration[7.0]
|
||||
def up
|
||||
DB.exec(<<~SQL)
|
||||
UPDATE site_settings
|
||||
SET value = 't'
|
||||
WHERE name = 'enable_experimental_hashtag_autocomplete'
|
||||
SQL
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user