do not pull hotlinked images when max_image_size_kb == 0

This commit is contained in:
Régis Hanol
2013-11-13 17:30:48 +01:00
parent a01b423263
commit 7e7d951152
6 changed files with 11 additions and 10 deletions

View File

@@ -33,7 +33,7 @@ class AvatarUploadPolicy
end
def max_size_kb
SiteSetting.max_image_size_kb * 1024
SiteSetting.max_image_size_kb.kilobytes
end
def too_big?