소스 검색

Update CommentPipeline

Daniel Supernault 6 년 전
부모
커밋
718d9a0452
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Jobs/CommentPipeline/CommentPipeline.php

+ 1 - 1
app/Jobs/CommentPipeline/CommentPipeline.php

@@ -51,7 +51,7 @@ class CommentPipeline implements ShouldQueue
         $target = $status->profile;
         $actor = $comment->profile;
 
-        if ($actor->id === $target->id) {
+        if ($actor->id === $target->id || $status->comments_disabled == true) {
             return true;
         }