fix: #13993, encodeURICompoent pid since it can be AP url

This commit is contained in:
Barış Soner Uşaklı
2026-02-16 08:48:21 -05:00
parent 472178035f
commit b607a80aeb

View File

@@ -396,7 +396,7 @@ helpers.setCategoryTeaser = function (category) {
if (Array.isArray(category.posts) && category.posts.length && category.posts[0]) {
const post = category.posts[0];
category.teaser = {
url: `${nconf.get('relative_path')}/post/${post.pid}`,
url: `${nconf.get('relative_path')}/post/${encodeURIComponent(post.pid)}`,
timestampISO: post.timestampISO,
pid: post.pid,
tid: post.tid,