mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
do not pull hotlinked images when max_image_size_kb == 0
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user