From 25e50be55202935ffa1a3415ab7c6f6c138aeefc Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 23 Oct 2022 18:07:34 +0200 Subject: [PATCH] same as last commit --- files/assets/js/comments_admin.js | 8 ++++---- files/templates/comments.html | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/files/assets/js/comments_admin.js b/files/assets/js/comments_admin.js index 73dd4a613..e86612298 100644 --- a/files/assets/js/comments_admin.js +++ b/files/assets/js/comments_admin.js @@ -1,7 +1,7 @@ -function removeComment(post_id,button1,button2,cls) { +function removeComment(t,post_id,button1,button2,cls) { url="/remove_comment/"+post_id - post(url) + post_toast(t,url) if (window.location.pathname == '/admin/reported/comments') { @@ -20,10 +20,10 @@ function removeComment(post_id,button1,button2,cls) { } }; -function approveComment(post_id,button1,button2,cls) { +function approveComment(t,post_id,button1,button2,cls) { url="/approve_comment/"+post_id - post(url) + post_toast(t,url) if (window.location.pathname == '/admin/reported/comments') { diff --git a/files/templates/comments.html b/files/templates/comments.html index a65265f36..5b23a59fb 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -459,10 +459,10 @@ {% if v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %} - + {% if v.id != c.author.id %} - + {% endif %} {% endif %} @@ -707,10 +707,10 @@ {% endif %} {% if v.admin_level >= PERMS['POST_COMMENT_MODERATION'] %} {% if v.id != c.author.id %} - Remove + Remove {% endif %} - Approve + Approve {% endif %} {% if c.oauth_app and v.admin_level >= PERMS['APPS_MODERATION'] %}