Fix polls not being validated on edition (#33755)
This commit is contained in:
		
					parent
					
						
							
								80f72ee501
							
						
					
				
			
			
				commit
				
					
						32aa83e9d7
					
				
			
		
					 8 changed files with 82 additions and 21 deletions
				
			
		|  | @ -87,10 +87,10 @@ class REST::InstanceSerializer < ActiveModel::Serializer | |||
|       }, | ||||
| 
 | ||||
|       polls: { | ||||
|         max_options: PollValidator::MAX_OPTIONS, | ||||
|         max_characters_per_option: PollValidator::MAX_OPTION_CHARS, | ||||
|         min_expiration: PollValidator::MIN_EXPIRATION, | ||||
|         max_expiration: PollValidator::MAX_EXPIRATION, | ||||
|         max_options: PollOptionsValidator::MAX_OPTIONS, | ||||
|         max_characters_per_option: PollOptionsValidator::MAX_OPTION_CHARS, | ||||
|         min_expiration: PollExpirationValidator::MIN_EXPIRATION, | ||||
|         max_expiration: PollExpirationValidator::MAX_EXPIRATION, | ||||
|       }, | ||||
| 
 | ||||
|       translation: { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue