Skip to content

Commit

Permalink
slightly larger preview thumb
Browse files Browse the repository at this point in the history
  • Loading branch information
VesterDe committed Dec 15, 2020
1 parent 6e647fd commit c690aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sledilnik/posts/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ def dehydrate(self, bundle):

if bundle.obj.image:
bundle.data["image"] = bundle.request.build_absolute_uri(get_thumbnail(bundle.obj.image, "800x810").url)
bundle.data["image_thumb"] = bundle.request.build_absolute_uri(get_thumbnail(bundle.obj.image, "230x230").url)
bundle.data["image_thumb"] = bundle.request.build_absolute_uri(get_thumbnail(bundle.obj.image, "300x300").url)

return bundle

0 comments on commit c690aa6

Please sign in to comment.