client/posts: split query by any whitespace

This commit is contained in:
Eva
2025-04-02 06:14:49 +02:00
parent f485b3d29b
commit 78dafcfd1d

View File

@ -41,7 +41,7 @@ class PostMainController extends BasePostController {
)
: uri.formatClientLink("post", ctx.parameters.id);
router.replace(url, ctx.state, false);
parameters.query.split(" ").forEach((item) => {
misc.splitByWhitespace(parameters.query).forEach((item) => {
const found = item.match(/^pool:([0-9]+)/i);
if (found) {
const activePool = parseInt(found[1]);