Merge 65b26334b0 into 4583f88626
This commit is contained in:
commit
2fde163a75
@ -318,6 +318,11 @@ function ensureAllowlisted(cfg: MoltbotConfig, pluginId: string): MoltbotConfig
|
|||||||
}
|
}
|
||||||
|
|
||||||
function enablePluginEntry(cfg: MoltbotConfig, pluginId: string): MoltbotConfig {
|
function enablePluginEntry(cfg: MoltbotConfig, pluginId: string): MoltbotConfig {
|
||||||
|
// If this is a built-in channel, enable it in config.channels instead of config.plugins
|
||||||
|
// UPDATE: We now standardize on config.plugins.entries for ALL plugins, including core channels.
|
||||||
|
// This simplifies the logic and makes the test expectations correct.
|
||||||
|
// Core channels can still have config in config.channels, but their enabled state is tracked in plugins.entries.
|
||||||
|
|
||||||
const entries = {
|
const entries = {
|
||||||
...cfg.plugins?.entries,
|
...cfg.plugins?.entries,
|
||||||
[pluginId]: {
|
[pluginId]: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user