Remove 4-letter usernames from the list of short usernames.

This commit is contained in:
levlam 2023-05-18 02:05:58 +03:00
parent f3a1407f8f
commit cbb10e0f3d

View File

@ -1310,8 +1310,7 @@ static Slice fix_url(Slice str) {
} }
const FlatHashSet<Slice, SliceHash> &get_valid_short_usernames() { const FlatHashSet<Slice, SliceHash> &get_valid_short_usernames() {
static const FlatHashSet<Slice, SliceHash> valid_usernames{"gif", "wiki", "vid", "bing", "pic", static const FlatHashSet<Slice, SliceHash> valid_usernames{"gif", "vid", "pic"};
"bold", "imdb", "coub", "like", "vote"};
return valid_usernames; return valid_usernames;
} }