Merge pull request #4771 from pixelfed/staging

Updaet HashtagUnfollowPipeline, fix typo
This commit is contained in:
daniel 2023-11-15 22:37:46 -07:00 committed by GitHub
commit 8b8fb5f6c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);