Skip to content

Node.js based forum software built for the modern web

fix: tag notification if pid is not int

Barış Soner Uşaklıbaada2fca76c
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,
});