Mark @v with a (Bot) label
This commit is contained in:
		
							parent
							
								
									edbd0feb37
								
							
						
					
					
						commit
						853e3e4896
					
				|  | @ -34,6 +34,17 @@ export function UserLink(props: { | |||
|       )} | ||||
|     > | ||||
|       {shortName} | ||||
|       {BOT_USERNAMES.includes(username) && <BotBadge />} | ||||
|     </SiteLink> | ||||
|   ) | ||||
| } | ||||
| 
 | ||||
| const BOT_USERNAMES = ['v'] | ||||
| 
 | ||||
| function BotBadge() { | ||||
|   return ( | ||||
|     <span className="ml-1.5 inline-flex items-center rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-800"> | ||||
|       Bot | ||||
|     </span> | ||||
|   ) | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user