diff --git a/models/Profile.js b/models/Profile.js
index 341a949a82d..931f0e5e13e 100644
--- a/models/Profile.js
+++ b/models/Profile.js
@@ -67,6 +67,12 @@ const ProfileSchema = new Schema(
min: 2,
max: 256,
},
+ metaDescription: {
+ type: String,
+ required: false,
+ min: 2,
+ max: 160,
+ },
tags: {
type: [String],
default: [],
diff --git a/pages/[username].js b/pages/[username].js
index 6356efe0379..f910f212846 100644
--- a/pages/[username].js
+++ b/pages/[username].js
@@ -1,8 +1,6 @@
import { useEffect, useState } from "react";
import { IconContext } from "react-icons";
import { FaArrowsRotate, FaEye, FaRegFaceSmileWink } from "react-icons/fa6";
-import { remark } from "remark";
-import strip from "strip-markdown";
import requestIp from "request-ip";
import { authOptions } from "./api/auth/[...nextauth]";
import { getServerSession } from "next-auth/next";
@@ -44,14 +42,6 @@ export async function getServerSideProps(context) {
logger.info(`data loaded for username: ${username}`);
- try {
- const processedBio = await remark().use(strip).process(profile.bio);
- profile.cleanBio = processedBio.toString();
- } catch (e) {
- logger.error(e, `cannot strip markdown for: ${username}`);
- profile.cleanBio = profile.bio;
- }
-
// override hiding navbar and footer if custom domain matches
if (
profile.settings?.domain &&
@@ -87,9 +77,9 @@ export default function User({ data, BASE_URL, isLoggedIn }) {
<>