summaryrefslogtreecommitdiff
path: root/static/js/controllers/comments_controller.js
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2024-02-29 12:23:00 -0600
committerHombreLaser <sebastian-440@live.com>2024-02-29 12:23:00 -0600
commit92c58b56a94d4cd3484eb9f5e6393a67392700df (patch)
tree33dbce95c5d409bcf6798c81203fed8a0f8b98f1 /static/js/controllers/comments_controller.js
parentb918a93f6854ced395e313dae0501b9267d6da30 (diff)
Add more replies button
Diffstat (limited to 'static/js/controllers/comments_controller.js')
-rw-r--r--static/js/controllers/comments_controller.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/static/js/controllers/comments_controller.js b/static/js/controllers/comments_controller.js
index 5f454df..458ff43 100644
--- a/static/js/controllers/comments_controller.js
+++ b/static/js/controllers/comments_controller.js
@@ -52,6 +52,7 @@ export class CommentsController extends BaseController {
async submit(event) {
var form = new FormData(event.target);
+ form.set('content', form.get('content').trim());
form.append("domain", `${window.location.protocol}//${window.location.host}`);
super.submit(event, `${this.comments_server_host}/api/comments?path=${this.post}`, form);