FIX: Only trigger upload ACL update when needed

In `post_creator`, the ACL update is only necessary when uploads need to be secured.

This should fix a regression with S3 clones that do not support updating ACLs.
This commit is contained in:
Penar Musaraj 2019-11-25 11:20:33 -05:00
parent d2d0937986
commit 5c5d8a307a

View File

@ -375,7 +375,9 @@ class PostCreator
end
def update_uploads_secure_status
@post.update_uploads_secure_status
if SiteSetting.secure_media? || SiteSetting.prevent_anons_from_downloading_files?
@post.update_uploads_secure_status
end
end
def handle_spam