mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 19:55:43 +00: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:
parent
d2d0937986
commit
5c5d8a307a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user