667a70acb9
parse_kind_prefix now lowercases the prefix before checking KNOWN_KINDS, matching the modal JS which already lowercases before its visibility check. Without this, typing 'Character:Jinx ...' showed the fandom picker but the server fell back to kind=user. Both /tags/add and /api/images/bulk-add-tag now also split a trailing '(Fandom)' suffix from a typed character name when no explicit fandom is staged, so a manual entry like 'Character:Jinx (League Of Legends)' produces a clean (name='Jinx', fandom_id=<league>) row instead of a malformed character with the suffix baked into the name. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>