forked from rDrama/rDrama
parent
a9f8d81343
commit
1a1c64f385
|
@ -495,6 +495,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis
|
|||
|
||||
emojis_used = set()
|
||||
|
||||
if not (author and author.hieroglyphs):
|
||||
emojis = list(emoji_regex.finditer(sanitized))
|
||||
if len(emojis) > 20: golden = False
|
||||
|
||||
|
@ -512,6 +513,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis
|
|||
|
||||
sanitized = sanitized.replace(old, new)
|
||||
|
||||
|
||||
emojis = list(emoji_regex2.finditer(sanitized))
|
||||
if len(emojis) > 20: golden = False
|
||||
|
||||
|
|
Loading…
Reference in New Issue