mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	Clean up
This commit is contained in:
		
							parent
							
								
									fe8334931f
								
							
						
					
					
						commit
						3e45e6c165
					
				
					 1 changed files with 0 additions and 9 deletions
				
			
		| 
						 | 
					@ -218,15 +218,6 @@ export async function createNote(value: string | IObject, resolver?: Resolver, s
 | 
				
			||||||
		if (note.name) {
 | 
							if (note.name) {
 | 
				
			||||||
			return await tryCreateVote(note.name, poll.choices.findIndex(x => x === note.name));
 | 
								return await tryCreateVote(note.name, poll.choices.findIndex(x => x === note.name));
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					 | 
				
			||||||
		// 後方互換性のため
 | 
					 | 
				
			||||||
		if (text) {
 | 
					 | 
				
			||||||
			const m = text.match(/(\d+)$/);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
			if (m) {
 | 
					 | 
				
			||||||
				return await tryCreateVote(m[0], Number(m[1]));
 | 
					 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const emojis = await extractEmojis(note.tag || [], actor.host).catch(e => {
 | 
						const emojis = await extractEmojis(note.tag || [], actor.host).catch(e => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue