trim tags

This commit is contained in:
Flummi
2021-12-30 03:38:39 +01:00
parent 236c4790bc
commit 29ad6c5773
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ export default (router, tpl) => {
}
const postid = +req.post.postid;
const tag = req.post.tag;
const tag = req.post.tag?.trim();
if(tag.length >= 45) {
return res.reply({ body: JSON.stringify({