Skip to content

Commit 84825e5

Browse files
committed
limit organization URL checks for scoring
1 parent 0d1e99a commit 84825e5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/lib/scoring-input.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export interface MergedScoringInputSource {
3131
profileValidationNotes?: string[]
3232
}
3333

34+
const ORGANIZATION_URLS_FOR_SCORING_LIMIT = 4
35+
3436
function normalizeText(value: unknown): string {
3537
return typeof value === 'string' ? value.trim() : ''
3638
}
@@ -66,6 +68,7 @@ export function buildMergedScoringInput(source: MergedScoringInputSource): Merge
6668
label: normalizeText(item?.label) || null,
6769
}))
6870
.filter(item => item.url.length > 0)
71+
.slice(0, ORGANIZATION_URLS_FOR_SCORING_LIMIT)
6972

7073
const { displayName, displayNameSource } = buildDisplayName(
7174
source.did,

0 commit comments

Comments
 (0)