remotes/1693045480750635534/spooky-22
Aevann1 2022-02-06 19:16:11 +02:00
parent 04b0088987
commit 12e607ff9d
1 changed files with 1 additions and 1 deletions

View File

@ -1174,7 +1174,7 @@ def submit_post(v, sub=None):
gevent.spawn(archiveorg, newposturl)
url_regex = '<a href=\"(https?:\/\/[a-z]{1,20}\.[^\"]+)\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">(.*?)<\/a>'
for url_match in re.finditer(url_regex, new_post.body_html):
for url_match in list(re.finditer(url_regex, new_post.body_html))[:20]:
href = url_match.group(1)
if not href: continue