aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-12-17 12:53:35 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-12-22 10:46:41 -0200
commit8142023ef51a90fdb5fe094bd9861308cb39452d (patch)
treeec31d3cb72a26ea1a6fa6227236e95b7828c1226
parentad3849d4b4d946bc186473718ccd50953a94c143 (diff)
Do comment validity checking on edits too
-rw-r--r--sx-interaction.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/sx-interaction.el b/sx-interaction.el
index 9af9ac6..2768c8d 100644
--- a/sx-interaction.el
+++ b/sx-interaction.el
@@ -320,7 +320,9 @@ from context at point."
(let ((buffer (current-buffer)))
(pop-to-buffer
(sx-compose-create
- .site data nil
+ .site data
+ ;; Before send hook
+ (when .comment_id (list #'sx--comment-valid-p))
;; After send functions
(list (lambda (_ res)
(sx--copy-data (elt res 0) data)