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