diff --git a/files/assets/js/admin/comments.js b/files/assets/js/admin/comments.js
index 3a6df7a4b..fdf8fdd58 100644
--- a/files/assets/js/admin/comments.js
+++ b/files/assets/js/admin/comments.js
@@ -47,3 +47,13 @@ function approveComment(t,comment_id,button1,button2,cls) {
}
);
}
+
+function delReportComment(t, url) {
+ postToast(t, url,
+ {
+ },
+ () => {
+ t.parentElement.remove()
+ }
+ );
+}
diff --git a/files/assets/js/admin/submission.js b/files/assets/js/admin/submission.js
index fe3c0f62b..58bde8263 100644
--- a/files/assets/js/admin/submission.js
+++ b/files/assets/js/admin/submission.js
@@ -40,3 +40,13 @@ function approvePost(t,post_id,button1,button2,cls) {
}
);
}
+
+function delReportPost(t, url) {
+ postToast(t, url,
+ {
+ },
+ () => {
+ t.parentElement.remove()
+ }
+ );
+}
diff --git a/files/templates/comments.html b/files/templates/comments.html
index 357cde146..a2e62e07c 100644
--- a/files/templates/comments.html
+++ b/files/templates/comments.html
@@ -241,7 +241,7 @@
Reported by:
{% for f in c.filtered_flags(v) %}
- - {% if c.ghost %}👻{% else %}{{f.user.username}}{% endif %}{% if f.reason %}: {{f.realreason(v) | safe}}{% endif %} {% if v and v.admin_level >= PERMS['FLAGS_REMOVE'] %}{% endif %}
+ - {% if c.ghost %}👻{% else %}{{f.user.username}}{% endif %}{% if f.reason %}: {{f.realreason(v) | safe}}{% endif %} {% if v and v.admin_level >= PERMS['FLAGS_REMOVE'] %}{% endif %}
{% endfor %}
diff --git a/files/templates/submission.html b/files/templates/submission.html
index 4bea1784d..16341eeb2 100644
--- a/files/templates/submission.html
+++ b/files/templates/submission.html
@@ -81,7 +81,7 @@
Reported by:
{% for f in p.filtered_flags(v) %}
- - {{f.user.username}}{% if f.reason %}: {{f.realreason(v) | safe}}{% endif %} {% if v and v.admin_level >= PERMS['FLAGS_REMOVE'] %}{% endif %}
+ - {{f.user.username}}{% if f.reason %}: {{f.realreason(v) | safe}}{% endif %} {% if v and v.admin_level >= PERMS['FLAGS_REMOVE'] %}{% endif %}
{% endfor %}
diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html
index f82b26c4a..28c92552d 100644
--- a/files/templates/submission_listing.html
+++ b/files/templates/submission_listing.html
@@ -31,7 +31,7 @@
Reported by:
{% for f in p.filtered_flags(v) %}
- - {{f.user.username}}{% if f.reason %}: {{f.realreason(v) | safe}}{% endif %} {% if v and v.admin_level >= PERMS['FLAGS_REMOVE'] %}{% endif %}
+ - {{f.user.username}}{% if f.reason %}: {{f.realreason(v) | safe}}{% endif %} {% if v and v.admin_level >= PERMS['FLAGS_REMOVE'] %}{% endif %}
{% endfor %}