From fb1de8ac5186f8a2674ea29e5170d9f96bb397d9 Mon Sep 17 00:00:00 2001 From: xoxys Date: Mon, 8 Feb 2016 11:16:32 +0100 Subject: [PATCH] check if comment author equals article author --- include/functions_comments.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions_comments.inc.php b/include/functions_comments.inc.php index ad9fc93e..0bb5dde6 100644 --- a/include/functions_comments.inc.php +++ b/include/functions_comments.inc.php @@ -874,7 +874,7 @@ function serendipity_insertComment($id, $commentInfo, $type = 'NORMAL', $source if ($status != 'confirm' && (serendipity_db_bool($ca['moderate_comments']) || ($type == 'NORMAL' && serendipity_db_bool($row['mail_comments'])) || (($type == 'TRACKBACK' || $type == 'PINGBACK') && serendipity_db_bool($row['mail_trackbacks'])))) { - if(!$backend){ + if(!$backend && $email == $row['email']){ serendipity_sendComment($cid, $row['email'], $name, $email, $url, $id, $row['title'], $comments, $type, serendipity_db_bool($ca['moderate_comments']), $referer); } }