From 898911f9a9e5956b4f459056523c60c1bd4d81a5 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 27 Dec 2022 05:36:12 -0700 Subject: [PATCH] Update lexer extractor, fix tests --- app/Util/Lexer/Extractor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Util/Lexer/Extractor.php b/app/Util/Lexer/Extractor.php index c71d3f2e6..6199a0ba8 100755 --- a/app/Util/Lexer/Extractor.php +++ b/app/Util/Lexer/Extractor.php @@ -268,7 +268,7 @@ class Extractor extends Regex return []; } - $bannedTags = TrendingHashtagService::getBannedHashtagNames(); + $bannedTags = config('app.env') === 'production' ? TrendingHashtagService::getBannedHashtagNames() : []; preg_match_all(self::$patterns['valid_hashtag'], $tweet, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE); $tags = [];