mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update lexer extractor, fix tests
This commit is contained in:
parent
710cc60194
commit
898911f9a9
1 changed files with 1 additions and 1 deletions
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in a new issue