aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--routes/account.routes.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/account.routes.js b/routes/account.routes.js
index f833c63f..b07c7d40 100644
--- a/routes/account.routes.js
+++ b/routes/account.routes.js
@@ -33,7 +33,7 @@ router.get("/", (req, res) => {
avatar: md5(user.gravatarEmail || user.email || ""),
url:
user.public == 1
- ? `${req.protocol + "://" + user.username + '.' + req.get("host")}`
+ ? `${req.protocol + "://" + user.username + '.' + req.get("host")}`.replace('www.', '')
: "",
},
});