Explorar o código

Update LikePipeline

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