From 59234e54ff42b871b9f9f7eb3c00ee2b47322a76 Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Wed, 27 Oct 2021 11:29:45 +0200 Subject: [PATCH] hdhudhefzwhreu --- files/routes/posts.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index d1bae3bf5..7861f7dfc 100755 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -866,20 +866,20 @@ def submit_post(v): # archive other urls in post url_regex = '([^\"]+)' _body = new_post.body_html - print(_body) + #print(_body) for url_match in re.finditer(url_regex, _body, flags=re.M|re.I): href = url_match.group(3) if not href: - print(f'{url_match.group(0)} skip') + #print(f'{url_match.group(0)} skip') continue - print(href) + #print(href) title = url_match.group(5) body += f'**[{title}]({href})**:\n\n' body += f'* [reveddit.com](https://reveddit.com/{href})\n' body += f'* [archive.org](https://web.archive.org/{href})\n' - body += f'* [archive.ph](https://archive.ph/?url={quote(href)}&run=1) (click to archive)\n' + body += f'* [archive.ph](https://archive.ph/?url={quote(href)}&run=1) (click to archive)\n\n' gevent.spawn(archiveorg, href) body_md = CustomRenderer().render(mistletoe.Document(body))