mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 07:01:44 +00:00
refactor(onboarding): reuse allowFrom merge helper in extensions
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import {
|
||||
addWildcardAllowFrom,
|
||||
formatDocsLink,
|
||||
mergeAllowFromEntries,
|
||||
promptAccountId,
|
||||
DEFAULT_ACCOUNT_ID,
|
||||
normalizeAccountId,
|
||||
@@ -99,7 +100,7 @@ async function promptNextcloudTalkAllowFrom(params: {
|
||||
...existingAllowFrom.map((item) => String(item).trim().toLowerCase()).filter(Boolean),
|
||||
...resolvedIds,
|
||||
];
|
||||
const unique = [...new Set(merged)];
|
||||
const unique = mergeAllowFromEntries(undefined, merged);
|
||||
|
||||
if (accountId === DEFAULT_ACCOUNT_ID) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user