about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-05-27 18:59:48 +0200
committerGitHub <noreply@github.com>2021-05-27 18:59:48 +0200
commitbbc9ca5d38c342f3afa87835f86cdbe82a9affdb (patch)
tree193863c7b8bbd25c77ea6489134db3cb9397ed3f /app
parent2024aef0f9b52297d814811f5825678a563f78ff (diff)
parent10a31a934fb62a95d6144794b9c449f1092593f0 (diff)
Merge pull request #1544 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app')
-rw-r--r--app/controllers/media_proxy_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/media_proxy_controller.rb b/app/controllers/media_proxy_controller.rb
index 1b610318d..5596e92d1 100644
--- a/app/controllers/media_proxy_controller.rb
+++ b/app/controllers/media_proxy_controller.rb
@@ -45,7 +45,7 @@ class MediaProxyController < ApplicationController
   end
 
   def lock_options
-    { redis: Redis.current, key: "media_download:#{params[:id]}" }
+    { redis: Redis.current, key: "media_download:#{params[:id]}", autorelease: 15.minutes.seconds }
   end
 
   def reject_media?