export function generateDirectUrl ( customization ) { let qs = '' ; Object . keys ( customization ) . forEach ( config => { if ( customization [ config ] !== undefined && customization [ config ] !== null ) { if ( config !== 'blockedUser' && config !== 'hiddenFeedId' ) { qs += `${ config }=${ encodeURIComponent ( customization [ config ] ) }&` ; } else { if ( customization [ config ] . length > 0 ) { qs += `${ config }= ${ encodeURIComponent ( customization [ config ] . join ( ',' ) ) }&` ; } } } } ) ; return qs . substring ( 0 , qs . length - 1 ) ; }