mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 13:08:40 +08:00
Converts the `topic_card_context` enum setting to a boolean `topic_card_high_context` setting and links it to the `serialize_topic_excerpts` theme modifier. This automatically enables topic excerpt serialization when the high context card layout is enabled, without requiring admins to manually enable a global site setting.
7 lines
224 B
JavaScript
Vendored
7 lines
224 B
JavaScript
Vendored
export default function migrate(settings) {
|
|
if (settings.get("topic_card_context") === "high_context") {
|
|
settings.set("topic_card_high_context", true);
|
|
}
|
|
settings.delete("topic_card_context");
|
|
return settings;
|
|
}
|