Replace leading slash for image links (#762)

The leading slash was previously removed without noticing it was part of a
string replacement in #734. This caused the href of "View Image" contain a
leading "/" which is wrong.
main
invis-z 2022-05-26 01:18:17 +08:00 committed by GitHub
parent fb600d6fc8
commit 9bcd9931f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -533,7 +533,7 @@ class Filter:
continue
img_url = urlparse.unquote(urls[0].replace(
f'{Endpoint.imgres}?imgurl=', ''))
f'/{Endpoint.imgres}?imgurl=', ''))
try:
# Try to strip out only the necessary part of the web page link