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.
This commit is contained in:
voussoir 2018-11-04 13:30:34 -08:00
parent 25a27e6241
commit de48105e32

View file

@ -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,