diff --git a/app/Util/Lexer/Extractor.php b/app/Util/Lexer/Extractor.php index c71d3f2e..6199a0ba 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 = [];