Merge pull request #9302 from Icinga/bugfix/icingadb-ignore-acks-in-comment-history-2.13

IcingaDB#SendRemovedComment(): ignore ack comments like #SendAddedCom…
This commit is contained in:
Alexander Aleksandrovič Klimov 2022-03-29 21:37:29 +02:00 committed by GitHub
commit 5f1e0ee2aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2022,7 +2022,7 @@ void IcingaDB::SendAddedComment(const Comment::Ptr& comment)
void IcingaDB::SendRemovedComment(const Comment::Ptr& comment)
{
if (!GetActive()) {
if (comment->GetEntryType() != CommentUser || !GetActive()) {
return;
}