Skip to content

Commit

Permalink
fix: remove script to page
Browse files Browse the repository at this point in the history
  • Loading branch information
Romaixn committed Dec 13, 2023
1 parent d1dc4cc commit c0627b7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pwa/app/(common)/community/contributors/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,6 @@ const parseGithubText = (text: string) => {
);
};

const addHttpsToUrls = (url: string) => {
if (!/^https?:\/\//i.test(url)) {
return "https://" + url;
}

return url;
}

export async function generateStaticParams() {
const contributors = getContributors(0, 100);
return contributors.map((c) => ({ slug: c.login }));
Expand All @@ -103,10 +95,6 @@ export default async function Page({

const contributorName = contributor.name || contributor.login;

if (contributor.blog) {
contributor.blog = addHttpsToUrls(contributor.blog);
}

const getContributionsText = () => {
if (10 >= contributor.rank) {
return `${contributor.isCoreTeam ? "As an API Platform core team member, " : ""
Expand Down

0 comments on commit c0627b7

Please sign in to comment.