mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user