mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01: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
|
@ -435,7 +435,7 @@ function pkg_get_details($id=0) {
|
|||
$q.= "PackageBases.Popularity, PackageBases.OutOfDateTS, ";
|
||||
$q.= "PackageBases.SubmittedTS, PackageBases.ModifiedTS, ";
|
||||
$q.= "PackageBases.SubmitterUID, PackageBases.MaintainerUID, ";
|
||||
$q.= "PackageBases.PackagerUID, ";
|
||||
$q.= "PackageBases.PackagerUID, PackageBases.FlaggerUID, ";
|
||||
$q.= "(SELECT COUNT(*) FROM PackageRequests ";
|
||||
$q.= " WHERE PackageRequests.PackageBaseID = Packages.PackageBaseID ";
|
||||
$q.= " AND PackageRequests.Status = 0) AS RequestCount ";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue