mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Turn on package notification by default for new packages
Version using package functions Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
0427eebaa4
commit
d25c177229
1 changed files with 3 additions and 0 deletions
|
@ -372,6 +372,7 @@ if ($_COOKIE["AURSID"]):
|
||||||
header('Location: packages.php?ID=' . $pdata['ID']);
|
header('Location: packages.php?ID=' . $pdata['ID']);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
$uid = uid_from_sid($_COOKIE["AURSID"]);
|
||||||
|
|
||||||
# This is a brand new package
|
# This is a brand new package
|
||||||
$q = sprintf("INSERT INTO Packages (Name, License, Version, CategoryID, Description, URL, LocationID, SubmittedTS, SubmitterUID, MaintainerUID, FSPath, URLPath) VALUES ('%s', '%s', '%s-%s', %d, '%s', '%s', 2, UNIX_TIMESTAMP(), %d, %d, '%s', '%s')",
|
$q = sprintf("INSERT INTO Packages (Name, License, Version, CategoryID, Description, URL, LocationID, SubmittedTS, SubmitterUID, MaintainerUID, FSPath, URLPath) VALUES ('%s', '%s', '%s-%s', %d, '%s', '%s', 2, UNIX_TIMESTAMP(), %d, %d, '%s', '%s')",
|
||||||
|
@ -416,6 +417,8 @@ if ($_COOKIE["AURSID"]):
|
||||||
db_query($q, $dbh);
|
db_query($q, $dbh);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pkg_notify(account_from_sid($_COOKIE["AURSID"]), array($packageID));
|
||||||
|
|
||||||
header('Location: packages.php?ID=' . $packageID);
|
header('Location: packages.php?ID=' . $packageID);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue