Selaa lähdekoodia

Update CommentPipeline

Daniel Supernault 6 vuotta sitten
vanhempi
commit
718d9a0452
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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;
         $target = $status->profile;
         $actor = $comment->profile;
         $actor = $comment->profile;
 
 
-        if ($actor->id === $target->id) {
+        if ($actor->id === $target->id || $status->comments_disabled == true) {
             return true;
             return true;
         }
         }