mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-27 18:10:58 +00:00
Merge fd0385a10f into 0725afe1a9
This commit is contained in:
commit
4a8d6400d2
|
|
@ -63,7 +63,7 @@ class BackupService < BaseService
|
||||||
dump_actor!(zipfile)
|
dump_actor!(zipfile)
|
||||||
end
|
end
|
||||||
|
|
||||||
archive_filename = "#{['archive', Time.now.utc.strftime('%Y%m%d%H%M%S'), SecureRandom.hex(16)].join('-')}.zip"
|
archive_filename = "#{['archive', Time.current.to_fs(:number), SecureRandom.hex(16)].join('-')}.zip"
|
||||||
|
|
||||||
@backup.dump = ActionDispatch::Http::UploadedFile.new(tempfile: tmp_file, filename: archive_filename)
|
@backup.dump = ActionDispatch::Http::UploadedFile.new(tempfile: tmp_file, filename: archive_filename)
|
||||||
@backup.processed = true
|
@backup.processed = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user