mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Remove redundant code
This code is no longer needed since 9746a65
(Port notification routines
to Python, 2015-06-27).
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
24734d06ce
commit
0c599b39b0
1 changed files with 1 additions and 15 deletions
|
@ -91,21 +91,7 @@ function pkgbase_add_comment($base_id, $uid, $comment) {
|
|||
$q.= $dbh->quote($comment) . ", UNIX_TIMESTAMP())";
|
||||
$dbh->exec($q);
|
||||
|
||||
/*
|
||||
* Send e-mail notifications.
|
||||
* TODO: Move notification logic to separate function where it belongs.
|
||||
*/
|
||||
$q = "SELECT CommentNotify.*, Users.Email ";
|
||||
$q.= "FROM CommentNotify, Users ";
|
||||
$q.= "WHERE Users.ID = CommentNotify.UserID ";
|
||||
$q.= "AND CommentNotify.UserID != " . $uid . " ";
|
||||
$q.= "AND CommentNotify.PackageBaseID = " . intval($base_id);
|
||||
$result = $dbh->query($q);
|
||||
$bcc = array();
|
||||
|
||||
if ($result) {
|
||||
notify(array('comment', $uid, $base_id), $comment);
|
||||
}
|
||||
notify(array('comment', $uid, $base_id), $comment);
|
||||
|
||||
return array(true, __('Comment has been added.'));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue