mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Allow users to unflag packages they flagged themselves
Sometimes, a user accidentally flags a package out-of-date. Allow users to unflag packages that they flagged themselves, thereby providing a way to undo these actions. Implements FS#46145. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
e1a258bd83
commit
57db4814a4
5 changed files with 8 additions and 5 deletions
|
@ -21,8 +21,9 @@ $packager = username_from_id($row["PackagerUID"]);
|
|||
if ($row["MaintainerUID"] !== NULL) {
|
||||
$maintainers = array_merge(array($row["MaintainerUID"]), pkgbase_get_comaintainer_uids(array($base_id)));
|
||||
} else {
|
||||
$maintainers = NULL;
|
||||
$maintainers = array();
|
||||
}
|
||||
$unflaggers = array_merge($maintainers, array($row["FlaggerUID"]));
|
||||
|
||||
$votes = $row['NumVotes'];
|
||||
$popularity = $row['Popularity'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue