Node.js based forum software built for the modern web
fix: post deletion of remote posts
Julian Lam5e2031977a18
diff --git a/public/src/client/topic/postTools.js b/public/src/client/topic/postTools.jsindex b47ac8b76c..9eef2324d8 100644--- a/public/src/client/topic/postTools.js+++ b/public/src/client/topic/postTools.js@@ -429,7 +429,7 @@ define('forum/topic/postTools', [const route = action === 'purge' ? '' : '/state';const method = action === 'restore' ? 'put' : 'del';- api[method](`/posts/${pid}${route}`).catch(alerts.error);+ api[method](`/posts/${encodeURIComponent(pid)}${route}`).catch(alerts.error);});}