File tree Expand file tree Collapse file tree 3 files changed +4
-262
lines changed
Expand file tree Collapse file tree 3 files changed +4
-262
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -164,7 +164,10 @@ async function orgHelper (db) {
164164 // Pull from the CNA object
165165 rootTlr = Object . hasOwn ( currentCNA , 'CNA' ) ? currentCNA . CNA . isRoot : false
166166 charterScope = Object . hasOwn ( currentCNA , 'scope' ) ? currentCNA . scope : null
167- disclosure = Object . hasOwn ( currentCNA , 'disclosurePolicy' ) ? currentCNA . disclosurePolicy : null
167+ disclosure = ( currentCNA . disclosurePolicy || [ ] )
168+ . map ( policy => policy ?. url ) // Extract the URL (safely)
169+ . filter ( url => url ) // Remove empty/null/undefined URLs
170+ . join ( ';' )
168171 email = currentCNA . contact [ 0 ] . email . length > 0 ? currentCNA . contact [ 0 ] . email [ 0 ] . emailAddr : null
169172 site = currentCNA . contact [ 0 ] . contact . length > 0 ? currentCNA . contact [ 0 ] . contact [ 0 ] . url : null
170173 }
You can’t perform that action at this time.
0 commit comments