fix-unsplash-image-links

This commit is contained in:
fatwang2 2025-02-09 10:10:50 +08:00
parent 28a326a094
commit 4c6b81e967

View File

@ -47,7 +47,7 @@ def response(resp):
'template': 'images.html',
'url': clean_url(result['links']['html']),
'thumbnail_src': clean_url(result['urls']['thumb']),
'img_src': clean_url(result['urls']['raw']),
'img_src': clean_url(result['urls']['regular']),
'title': result.get('alt_description') or 'unknown',
'content': result.get('description') or '',
}