mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Allow listing all comments from a user
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
a7865ef5aa
commit
3578e77ad4
12 changed files with 258 additions and 30 deletions
|
@ -43,6 +43,7 @@ if (isset($_POST['IDs'])) {
|
|||
|
||||
/* Perform package base actions. */
|
||||
$via = isset($_POST['via']) ? $_POST['via'] : NULL;
|
||||
$return_to = isset($_POST['return_to']) ? $_POST['return_to'] : NULL;
|
||||
$ret = false;
|
||||
$output = "";
|
||||
$fragment = "";
|
||||
|
@ -133,7 +134,14 @@ if (check_token()) {
|
|||
/* Redirect back to package request page on success. */
|
||||
header('Location: ' . get_pkgreq_route());
|
||||
exit();
|
||||
} if (isset($base_id)) {
|
||||
} elseif ((current_action("do_DeleteComment") ||
|
||||
current_action("do_UndeleteComment")) && $return_to) {
|
||||
header('Location: ' . $return_to);
|
||||
exit();
|
||||
} elseif (current_action("do_PinComment") && $return_to) {
|
||||
header('Location: ' . $return_to);
|
||||
exit();
|
||||
} elseif (isset($base_id)) {
|
||||
/* Redirect back to package base page on success. */
|
||||
header('Location: ' . get_pkgbase_uri($pkgbase_name) . $fragment);
|
||||
exit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue