Skip to content
This repository was archived by the owner on Aug 13, 2024. It is now read-only.

Commit 7fef0b9

Browse files
fix: filter out bot avatars from insights (#83)
* fix: filter out bot avatars from insights * chore: fix linter
1 parent 1cea5b4 commit 7fef0b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/social-card/insight-card/insight-card.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class InsightCardService {
8989

9090
const { pageName, repos, contributors } = insightData ? insightData : await this.getInsightData(insightId);
9191

92-
const template = html(insightCardTemplate(pageName, insightContributors(contributors), insightRepos(repos, 3)));
92+
const template = html(insightCardTemplate(pageName, insightContributors(contributors.filter(contributor => !contributor.includes("[bot]"))), insightRepos(repos, 3)));
9393

9494
const interArrayBuffer = await fs.readFile("node_modules/@fontsource/inter/files/inter-all-400-normal.woff");
9595
const interArrayBufferMedium = await fs.readFile("node_modules/@fontsource/inter/files/inter-all-500-normal.woff");

0 commit comments

Comments
 (0)