mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 14:24:56 -04:00
Don't reuse source but instead copy from primary media store to backup
This commit is contained in:
parent
b92a8e6e4a
commit
2b24416e90
2 changed files with 9 additions and 22 deletions
|
@ -275,8 +275,7 @@ class PreviewUrlResource(Resource):
|
|||
)
|
||||
# FIXME: pass through 404s and other error messages nicely
|
||||
|
||||
# Will close the file after its done
|
||||
yield self.media_repo.copy_to_backup(open(fname), fpath)
|
||||
yield self.media_repo.copy_to_backup(fpath)
|
||||
|
||||
media_type = headers["Content-Type"][0]
|
||||
time_now_ms = self.clock.time_msec()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue