mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-11-04 06:31:57 +00:00 
			
		
		
		
	Add fix for decoding invalid user preferences
This commit is contained in:
		@@ -119,7 +119,11 @@ end
 | 
			
		||||
class User
 | 
			
		||||
  module PreferencesConverter
 | 
			
		||||
    def self.from_rs(rs)
 | 
			
		||||
      Preferences.from_json(rs.read(String))
 | 
			
		||||
      begin
 | 
			
		||||
        Preferences.from_json(rs.read(String))
 | 
			
		||||
      rescue ex
 | 
			
		||||
        DEFAULT_USER_PREFERENCES
 | 
			
		||||
      end
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user