X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Fsrc%2FPlugin%2FAction%2FUnpublishByKeywordComment.php;h=fe2f7ed5b0d6f09435c86c5c0d892485d76d5b56;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=ec1b268d7bd6e6f254add2205489d7f94046ec3d;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php b/web/core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php index ec1b268d7..fe2f7ed5b 100644 --- a/web/core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php +++ b/web/core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php @@ -78,7 +78,7 @@ class UnpublishByKeywordComment extends ConfigurableActionBase implements Contai $text = $this->renderer->renderPlain($build); foreach ($this->configuration['keywords'] as $keyword) { if (strpos($text, $keyword) !== FALSE) { - $comment->setPublished(FALSE); + $comment->setUnpublished(); $comment->save(); break; }