From 08e4d04c92dc354eb3569bb818e4a6d6d19bd97d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 23 Sep 2022 14:01:42 +0200 Subject: [PATCH] minor change to silence warnings --- files/helpers/actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/actions.py b/files/helpers/actions.py index 4a225a9b05..a59946aaae 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -92,7 +92,7 @@ def execute_snappy(post, v): body += "\n\n" - if post.url and not post.url.startswith(SITE_FULL) and not post.url.startswith('/') and not post.url.startswith('https://rdrama.org'): + if post.url and not post.url.startswith(SITE_FULL) and not post.url.startswith('/') and not post.url.startswith('https://rdrama.org/'): if post.url.startswith('https://old.reddit.com/r/'): rev = post.url.replace('https://old.reddit.com/', '') rev = f"* [unddit.com](https://unddit.com/{rev})\n" @@ -121,7 +121,7 @@ def execute_snappy(post, v): for href, title in captured: - if href.startswith(SITE_FULL) or href.startswith('https://rdrama.org'): continue + if href.startswith(SITE_FULL) or href.startswith('https://rdrama.org/'): continue if "Snapshots:\n\n" not in body: body += "Snapshots:\n\n"