fix: tag notification if pid is not int

This commit is contained in:
Barış Soner Uşaklı
2024-05-10 10:21:28 -04:00
parent ccd187e000
commit baada2fca7

View File

@@ -624,7 +624,7 @@ module.exports = function (Topics) {
bodyShort: bodyShort, bodyShort: bodyShort,
bodyLong: postData.content, bodyLong: postData.content,
pid: postData.pid, pid: postData.pid,
path: `/post/${postData.pid}`, path: `/post/${encodeURIComponent(postData.pid)}`,
tid: postData.topic.tid, tid: postData.topic.tid,
from: exceptUid, from: exceptUid,
}); });