mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 07:10:30 +01:00
fix: post deletion of remote posts
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user