mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
refactor: share nextcloud onboarding allowFrom lookup
This commit is contained in:
@@ -2,6 +2,7 @@ import {
|
||||
buildSingleChannelSecretPromptState,
|
||||
formatDocsLink,
|
||||
hasConfiguredSecretInput,
|
||||
mapAllowFromEntries,
|
||||
mergeAllowFromEntries,
|
||||
promptSingleChannelSecretInput,
|
||||
resolveAccountIdForConfigure,
|
||||
@@ -29,7 +30,7 @@ function setNextcloudTalkDmPolicy(cfg: CoreConfig, dmPolicy: DmPolicy): CoreConf
|
||||
channel: "nextcloud-talk",
|
||||
dmPolicy,
|
||||
getAllowFrom: (inputCfg) =>
|
||||
(inputCfg.channels?.["nextcloud-talk"]?.allowFrom ?? []).map((entry) => String(entry)),
|
||||
mapAllowFromEntries(inputCfg.channels?.["nextcloud-talk"]?.allowFrom),
|
||||
}) as CoreConfig;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user