diff --git a/extensions/approval/src/Listener/ApproveContent.php b/extensions/approval/src/Listener/ApproveContent.php index e0b996f22f..72e3760c8d 100755 --- a/extensions/approval/src/Listener/ApproveContent.php +++ b/extensions/approval/src/Listener/ApproveContent.php @@ -39,7 +39,9 @@ public function approvePost(Saving $event) if (! empty($isApproved)) { $post->is_approved = true; - $post->raise(new PostWasApproved($post, $event->actor)); + if(! $post->hidden_at) { + $post->raise(new PostWasApproved($post, $event->actor)); + } } } }