fix: encoding of pid in notifyCategoryFollowers, #13087

This commit is contained in:
Julian Lam
2025-01-29 12:29:12 -05:00
parent 4feda2240a
commit 6d88dcb2b5

View File

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