Switch webpush dependency to latest version of Mastodon-maintained fork (#33572)
		
	This commit is contained in:
		
					parent
					
						
							
								50449ae7ac
							
						
					
				
			
			
				commit
				
					
						68d818121d
					
				
			
		
					 5 changed files with 8 additions and 8 deletions
				
			
		|  | @ -3,7 +3,7 @@ | |||
| class WebPushKeyValidator < ActiveModel::Validator | ||||
|   def validate(subscription) | ||||
|     begin | ||||
|       Webpush::Encryption.encrypt('validation_test', subscription.key_p256dh, subscription.key_auth) | ||||
|       Webpush::Legacy::Encryption.encrypt('validation_test', subscription.key_p256dh, subscription.key_auth) | ||||
|     rescue ArgumentError, OpenSSL::PKey::EC::Point::Error | ||||
|       subscription.errors.add(:base, I18n.t('crypto.errors.invalid_key')) | ||||
|     end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue