fix: post deletion of remote posts

This commit is contained in:
Julian Lam
2024-04-30 21:59:27 -04:00
parent 6ac5a77976
commit 5e2031977a

View File

@@ -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);
});
}