From 927e5a7ceec3980acabc49bba1e79688f083dc04 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sat, 5 Nov 2022 02:19:57 -0500 Subject: [PATCH] snappy: fix weird missing line --- files/helpers/actions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/helpers/actions.py b/files/helpers/actions.py index ff6f75add..b43c314f3 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -107,9 +107,7 @@ def execute_snappy(post, v): for href, title in captured: if href.startswith(SITE_FULL) or href.startswith(f'https://{BAN_EVASION_DOMAIN}'): continue - if "Snapshots:\n\n" not in body: body += "Snapshots:\n\n" - if f'**[{title}]({href})**:\n\n' not in body: addition = f'**[{title}]({href})**:\n\n' if href.startswith('https://old.reddit.com/r/'): @@ -121,6 +119,7 @@ def execute_snappy(post, v): addition += f'* [archive.org](https://web.archive.org/{href})\n' addition += f'* [ghostarchive.org](https://ghostarchive.org/search?term={quote(href)})\n' addition += f'* [archive.ph](https://archive.ph/?url={quote(href)}&run=1) (click to archive)\n' + addition += '\n' if len(f'{body}{addition}') > COMMENT_BODY_LENGTH_LIMIT: break body += addition archive_url(href)