Allow ids on urls without encoding

This commit is contained in:
Rogerio Chaves 2020-04-16 19:49:05 +02:00
parent af2dd021e6
commit 58a103adbb
No known key found for this signature in database
GPG Key ID: E6AF5440509B1D94
1 changed files with 1 additions and 4 deletions

View File

@ -56,9 +56,6 @@ Client(ssbSecret, ssbConfig, async (err, server) => {
});
let profileUrl = (id, path = "") => {
if (id.includes("/")) {
return `/profile/${encodeURIComponent(id)}${path}`;
}
return `/profile/${id}${path}`;
};
@ -222,7 +219,7 @@ router.post("/signup", async (req, res) => {
res.redirect("/");
});
router.get("/profile/:id", async (req, res) => {
router.get("/profile/:id(*)", async (req, res) => {
const id = req.params.id;
if (id == req.context.profile.id) {