X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Fsrc%2FPlugin%2FAction%2FUnpublishByKeywordComment.php;fp=web%2Fcore%2Fmodules%2Fcomment%2Fsrc%2FPlugin%2FAction%2FUnpublishByKeywordComment.php;h=fe2f7ed5b0d6f09435c86c5c0d892485d76d5b56;hp=ec1b268d7bd6e6f254add2205489d7f94046ec3d;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c 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; }