mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	fix: return empty emoji list for polls for masto app
This commit is contained in:
		
							parent
							
								
									dd72610daa
								
							
						
					
					
						commit
						607a3e7427
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -9,5 +9,6 @@ namespace Entity {
 | 
				
			||||||
    votes_count: number
 | 
					    votes_count: number
 | 
				
			||||||
    options: Array<PollOption>
 | 
					    options: Array<PollOption>
 | 
				
			||||||
    voted: boolean
 | 
					    voted: boolean
 | 
				
			||||||
 | 
					    emojis?: []
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -254,6 +254,7 @@ namespace MisskeyAPI {
 | 
				
			||||||
        votes_count: count,
 | 
					        votes_count: count,
 | 
				
			||||||
        options: Array.isArray(p.choices) ? p.choices.map(c => choice(c)) : [],
 | 
					        options: Array.isArray(p.choices) ? p.choices.map(c => choice(c)) : [],
 | 
				
			||||||
        voted: Array.isArray(p.choices) ? p.choices.some(c => c.isVoted) : false,
 | 
					        voted: Array.isArray(p.choices) ? p.choices.some(c => c.isVoted) : false,
 | 
				
			||||||
 | 
					        emojis: [],
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue