mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 12:06:17 +02: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 route = action === 'purge' ? '' : '/state';
|
||||||
const method = action === 'restore' ? 'put' : 'del';
|
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