From 79578da7b3936c8e774d93899c5238273c78d8fc Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 14 Sep 2021 17:15:55 +0200 Subject: [PATCH] fd --- files/routes/posts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index e358892d75..f0d4d0e7b6 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -890,11 +890,11 @@ def submit_post(v): } ) if tag: - thumb_candidate_urls.append(expand_url(post.url, tag['content'])) + thumb_candidate_urls.append(expand_url(new_post.url, tag['content'])) #parse html doc for elements for tag in soup.find_all("img", attrs={'src':True}): - thumb_candidate_urls.append(expand_url(post.url, tag['src'])) + thumb_candidate_urls.append(expand_url(new_post.url, tag['src'])) #now we have a list of candidate urls to try