forked from MarseyWorld/MarseyWorld
Revert "seed marsifying" - there's no id yet when we're seeding, so its always the same result fo all comments
This reverts commit bfb562561b
.
master
parent
6ba28d2222
commit
aec348b011
|
@ -3,7 +3,7 @@ import random
|
|||
from .const_stateful import MARSEY_MAPPINGS
|
||||
|
||||
|
||||
def marsify(text, chud_phrase, seed):
|
||||
def marsify(text, chud_phrase):
|
||||
if '`' in text or '<pre>' in text or '<code>' in text:
|
||||
return text
|
||||
|
||||
|
@ -15,8 +15,6 @@ def marsify(text, chud_phrase, seed):
|
|||
x = x.lower()
|
||||
if x in chud_words: continue
|
||||
if len(x) >= 5 and x in MARSEY_MAPPINGS:
|
||||
random.seed(seed)
|
||||
marsey = random.choice(MARSEY_MAPPINGS[x])
|
||||
random.seed()
|
||||
new_text += f':{marsey}: '
|
||||
return new_text
|
||||
|
|
|
@ -347,7 +347,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis
|
|||
if author.owoify:
|
||||
sanitized = owoify(sanitized, author.chud_phrase)
|
||||
if author.marsify:
|
||||
sanitized = marsify(sanitized, author.chud_phrase, obj.fullname)
|
||||
sanitized = marsify(sanitized, author.chud_phrase)
|
||||
|
||||
if obj and obj.sharpened:
|
||||
sanitized = sharpen(sanitized, author.chud_phrase)
|
||||
|
@ -646,7 +646,7 @@ def filter_emojis_only(title, golden=True, count_emojis=False, obj=None, author=
|
|||
if author.owoify:
|
||||
title = owoify(title, author.chud_phrase)
|
||||
if author.marsify:
|
||||
title = marsify(title, author.chud_phrase, obj.fullname)
|
||||
title = marsify(title, author.chud_phrase)
|
||||
|
||||
if obj and obj.sharpened:
|
||||
title = sharpen(title, author.chud_phrase)
|
||||
|
|
Loading…
Reference in New Issue