Explorar o código

Update CommentPipeline

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
718d9a0452
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
         }