Skip to content

Node.js based forum software built for the modern web

fix: encoding of pid in notifyCategoryFollowers, #13087

Julian Lam6d88dcb2b56a
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,
});