From 92d290b2a4f1036416e006e65eaa3c567e0257d8 Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 31 Jul 2016 23:53:23 +0200 Subject: [PATCH] server/posts: fix removing custom thumbnails --- server/szurubooru/func/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/szurubooru/func/posts.py b/server/szurubooru/func/posts.py index 68326e25..2999dbe9 100644 --- a/server/szurubooru/func/posts.py +++ b/server/szurubooru/func/posts.py @@ -226,7 +226,7 @@ def update_post_content(post, content): update_post_thumbnail(post, content=None, delete=False) def update_post_thumbnail(post, content=None, delete=True): - if content is None: + if not content: content = files.get(get_post_content_path(post)) if delete: files.delete(get_post_thumbnail_backup_path(post))