Compare commits

...

2 Commits

Author SHA1 Message Date
Aevann1 84b1d2a7d7 dont check badges for duplicate images 2022-12-10 10:26:55 +02:00
Aevann1 ce27be1d4a fix comment refactor bug 2022-12-10 10:26:47 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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():