From 6d88dcb2b56abbb21b94dde1b6a2df223013fe1a Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 29 Jan 2025 12:29:12 -0500 Subject: [PATCH] fix: encoding of pid in notifyCategoryFollowers, #13087 --- src/categories/topics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/categories/topics.js b/src/categories/topics.js index b4841200fd..918cc4c244 100644 --- a/src/categories/topics.js +++ b/src/categories/topics.js @@ -245,7 +245,7 @@ module.exports = function (Categories) { bodyShort: bodyShort, bodyLong: postData.content, pid: postData.pid, - path: `/post/${postData.pid}`, + path: `/post/${encodeURIComponent(postData.pid)}`, tid: postData.topic.tid, from: exceptUid, });