mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 11:42:25 -05:00 
			
		
		
		
	[bugfix] fix check for closed poll to account for non-zero closed time but in the future (#2486)
This commit is contained in:
		
					parent
					
						
							
								0cb1dd493c
							
						
					
				
			
			
				commit
				
					
						511ad97fe7
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -44,7 +44,7 @@ func (p *Processor) PollVote(ctx context.Context, requester *gtsmodel.Account, p | ||||||
| 		return nil, gtserror.NewErrorUnprocessableEntity(errors.New(text), text) | 		return nil, gtserror.NewErrorUnprocessableEntity(errors.New(text), text) | ||||||
| 
 | 
 | ||||||
| 	// Poll has already closed, no more voting! | 	// Poll has already closed, no more voting! | ||||||
| 	case !poll.ClosedAt.IsZero(): | 	case poll.Closed(): | ||||||
| 		const text = "poll already closed" | 		const text = "poll already closed" | ||||||
| 		return nil, gtserror.NewErrorUnprocessableEntity(errors.New(text), text) | 		return nil, gtserror.NewErrorUnprocessableEntity(errors.New(text), text) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue