瀏覽代碼

Update HashtagUnfollowPipeline

Daniel Supernault 1 年之前
父節點
當前提交
d8fbb4ff32
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      app/Jobs/HomeFeedPipeline/HashtagUnfollowPipeline.php

+ 0 - 4
app/Jobs/HomeFeedPipeline/HashtagUnfollowPipeline.php

@@ -74,10 +74,6 @@ class HashtagUnfollowPipeline implements ShouldQueue, ShouldBeUniqueUntilProcess
 
         $statusIds = HomeTimelineService::get($pid, 0, -1);
 
-        if(!$statusIds || !count($statusIds)) {
-            return;
-        }
-
         $followingIds = Cache::remember('profile:following:'.$pid, 1209600, function() use($pid) {
             $following = Follower::whereProfileId($pid)->pluck('following_id');
             return $following->push($pid)->toArray();