mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Support comment editing in the backend
Create two new actions, do_AddComment and do_EditComment. When editing or deleting a comment, a timestamp is added. Signed-off-by: Marcel Korpel <marcel.korpel@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
92e19e95f3
commit
e331ce273c
5 changed files with 73 additions and 1 deletions
|
@ -108,6 +108,8 @@ if (check_token()) {
|
|||
$uid = uid_from_sid($_COOKIE["AURSID"]);
|
||||
pkgbase_add_comment($base_id, $uid, $_REQUEST['comment']);
|
||||
$ret = true;
|
||||
} elseif (current_action("do_EditComment")) {
|
||||
list($ret, $output) = pkgbase_edit_comment($_REQUEST['comment']);
|
||||
}
|
||||
|
||||
if ($ret) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue