From de48105e32b358e4e2bc0791d5c734d89cbf4860 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 4 Nov 2018 13:30:34 -0800 Subject: [PATCH] When thumbnailing, don't call relative_to on return. The path given by make_thumbnail_filepath will already have it in the right place, so this is probably an accident waiting to happen. --- etiquette/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etiquette/objects.py b/etiquette/objects.py index b0851ce..bfbf23a 100644 --- a/etiquette/objects.py +++ b/etiquette/objects.py @@ -826,7 +826,7 @@ class Photo(ObjectBase): if return_filepath != self.thumbnail: if return_filepath is not None: - return_filepath = return_filepath.relative_to(self.photodb.thumbnail_directory) + return_filepath = return_filepath.absolute_path data = { 'id': self.id, 'thumbnail': return_filepath,