mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 12:38:07 +08:00
FIX: Moving upload to tombstone should update modification time.
A upload created a long time ago will be nuked from the tombstone immediately if it gets deleted.
This commit is contained in:
@ -17,6 +17,7 @@ module FileStore
|
||||
dir = Pathname.new(destination).dirname
|
||||
FileUtils.mkdir_p(dir) unless Dir.exists?(dir)
|
||||
FileUtils.move(source, destination, force: true)
|
||||
FileUtils.touch(destination)
|
||||
end
|
||||
|
||||
def has_been_uploaded?(url)
|
||||
|
Reference in New Issue
Block a user