From baada2fca76cf8e11d69f4abd68d7dc1395c075f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 10 May 2024 10:21:28 -0400 Subject: [PATCH] fix: tag notification if pid is not int --- src/topics/tags.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topics/tags.js b/src/topics/tags.js index daab4e5f77..ee78a85f8e 100644 --- a/src/topics/tags.js +++ b/src/topics/tags.js @@ -624,7 +624,7 @@ module.exports = function (Topics) { bodyShort: bodyShort, bodyLong: postData.content, pid: postData.pid, - path: `/post/${postData.pid}`, + path: `/post/${encodeURIComponent(postData.pid)}`, tid: postData.topic.tid, from: exceptUid, });