forked from cybrespace/mastodon
		
	Fix media proxy RedisLocks auto-releasing too fast (#16291)
Follow-up to #16276
This commit is contained in:
		
							parent
							
								
									1db28332b5
								
							
						
					
					
						commit
						12f8f39e25
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -45,7 +45,7 @@ class MediaProxyController < ApplicationController
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def lock_options
 | 
					  def lock_options
 | 
				
			||||||
    { redis: Redis.current, key: "media_download:#{params[:id]}" }
 | 
					    { redis: Redis.current, key: "media_download:#{params[:id]}", autorelease: 15.minutes.seconds }
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def reject_media?
 | 
					  def reject_media?
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue