From 3e96fa8a565333583b18f07746eafb003e3820fb Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 15 Nov 2023 22:37:21 -0700 Subject: [PATCH] Updaet HashtagUnfollowPipeline, fix typo --- app/Jobs/HomeFeedPipeline/HashtagUnfollowPipeline.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/HomeFeedPipeline/HashtagUnfollowPipeline.php b/app/Jobs/HomeFeedPipeline/HashtagUnfollowPipeline.php index 69573f41..de2af913 100644 --- a/app/Jobs/HomeFeedPipeline/HashtagUnfollowPipeline.php +++ b/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);