Fix NoMethodError in ActivityPub::NoteSerializer (#10172)
This commit is contained in:
		
							parent
							
								
									31a1fa3dcf
								
							
						
					
					
						commit
						a7dfbbd4fb
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -122,7 +122,7 @@ class ActivityPub::NoteSerializer < ActiveModel::Serializer | |||
|   end | ||||
| 
 | ||||
|   def poll_options | ||||
|     if !object.expired? && object.hide_totals? | ||||
|     if !object.poll.expired? && object.poll.hide_totals? | ||||
|       object.poll.unloaded_options | ||||
|     else | ||||
|       object.poll.loaded_options | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue