Quellcode durchsuchen

Updaet HashtagUnfollowPipeline, fix typo

Daniel Supernault vor 1 Jahr
Ursprung
Commit
3e96fa8a56
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      app/Jobs/HomeFeedPipeline/HashtagUnfollowPipeline.php

+ 2 - 2
app/Jobs/HomeFeedPipeline/HashtagUnfollowPipeline.php

@@ -68,9 +68,9 @@ class HashtagUnfollowPipeline implements ShouldQueue
                 continue;
             }
 
-            $tags = collect($status['tags'])->filter(function($tag) {
+            $tags = collect($status['tags'])->map(function($tag) {
                 return $tag['name'];
-            })->toArray();
+            })->filter()->values()->toArray();
 
             if(in_array($slug, $tags)) {
                 HomeTimelineService::rem($pid, $id);