diff --git a/contrib/js/nntpchan/report.js b/contrib/js/nntpchan/report.js index 74a6faa..f2e11d6 100644 --- a/contrib/js/nntpchan/report.js +++ b/contrib/js/nntpchan/report.js @@ -16,10 +16,14 @@ function nntpchan_report_thread(posthash) { } } -function nntpchan_report(msgid) { - var e = document.getElementById("modactions"); +function nntpchan_report(msgid, msgid_hash, refid, refid_hash) { + var e = document.getElementById("nntpchan_censon_actions"); if (!e) return; - e.value += "delete "+msgid+"\n"; + if(refid == msgid) { + nntp_report_thread(refid_hash); + } else { + e.value += "delete "+msgid+"\n"; + } show_censortools(); } diff --git a/contrib/templates/default/post.mustache b/contrib/templates/default/post.mustache index 5428208..85c3830 100644 --- a/contrib/templates/default/post.mustache +++ b/contrib/templates/default/post.mustache @@ -36,7 +36,7 @@
-
+
[delete]