Compare commits
2 Commits
ff2ced1911
...
84b1d2a7d7
Author | SHA1 | Date |
---|---|---|
Aevann1 | 84b1d2a7d7 | |
Aevann1 | ce27be1d4a |
|
@ -178,7 +178,7 @@ def process_image(filename:str, v, resize=0, trim=False, uploader_id:Optional[in
|
|||
path = filename.rsplit('/', 1)[0]
|
||||
kind = path.split('/')[-1]
|
||||
|
||||
if kind in ('banners','sidebar','badges'):
|
||||
if kind in ('banners','sidebar'):
|
||||
hashes = {}
|
||||
|
||||
for img in os.listdir(path):
|
||||
|
|
|
@ -199,7 +199,7 @@ def comment(v:User):
|
|||
if v.owoify: body_for_sanitize = owoify(body_for_sanitize)
|
||||
if v.marsify: body_for_sanitize = marsify(body_for_sanitize)
|
||||
|
||||
torture = (v.agendaposter and not v.marseyawarded and post_target.sub != 'chudrama' and post_target.id not in ADMIGGER_THREADS)
|
||||
torture = (v.agendaposter and not v.marseyawarded and not (posting_to_submission and post_target.sub == 'chudrama') and post_target.id not in ADMIGGER_THREADS)
|
||||
body_html = sanitize(body_for_sanitize, limit_pings=5, count_marseys=not v.marsify, torture=torture)
|
||||
|
||||
if post_target.id not in ADMIGGER_THREADS and '!wordle' not in body.lower() and AGENDAPOSTER_PHRASE not in body.lower():
|
||||
|
|
Loading…
Reference in New Issue