Browse Source

Update LikePipeline

Daniel Supernault 6 năm trước cách đây
mục cha
commit
7dc1bc7d9f
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/Jobs/LikePipeline/LikePipeline.php

+ 2 - 2
app/Jobs/LikePipeline/LikePipeline.php

@@ -41,8 +41,8 @@ class LikePipeline implements ShouldQueue
         $status = $this->like->status;
         $actor = $this->like->actor;
 
-        if ($status->url !== null) {
-            // Ignore notifications to remote statuses
+        if (!$status || $status->url !== null) {
+            // Ignore notifications to remote statuses, or deleted statuses
             return;
         }