ソースを参照

Updaet HashtagUnfollowPipeline, fix typo

Daniel Supernault 1 年間 前
コミット
3e96fa8a56
1 ファイル変更2 行追加2 行削除
  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);