mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Add comment undeletion functionality
Only Developers and Trusted Users can undelete comments. Signed-off-by: Marcel Korpel <marcel.korpel@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
e9fe1a9eb1
commit
bd85441cf6
8 changed files with 75 additions and 7 deletions
|
@ -99,6 +99,11 @@ if (check_token()) {
|
|||
list($ret, $output) = pkgbase_notify($ids, false);
|
||||
} elseif (current_action("do_DeleteComment")) {
|
||||
list($ret, $output) = pkgbase_delete_comment();
|
||||
} elseif (current_action("do_UndeleteComment")) {
|
||||
list($ret, $output) = pkgbase_delete_comment(true);
|
||||
if ($ret && isset($_POST["comment_id"])) {
|
||||
$fragment = '#comment-' . intval($_POST["comment_id"]);
|
||||
}
|
||||
} elseif (current_action("do_PinComment")) {
|
||||
list($ret, $output) = pkgbase_pin_comment();
|
||||
} elseif (current_action("do_UnpinComment")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue