==== What is the problem?
When importing private events from `cu_changes` to `cu_private_event`, there are a few inconsistencies:
* It imports the `cuc_ip` and `cuc_ip_hex` to the `cuc_xff` and `cuc_xff_hex` columns as well, even if the row in `cu_changes` had a blank `cuc_xff`.
* When the log message is displayed in CheckUser, it is displayed as wikitext and not parsed as HTML (e.g. it will display `Successfully logged in to enwiki as [[User:*Unregistered 223|*Unregistered 223]]`).
==== Steps to reproduce problem
# In `LocalSettings.php`, save `$wgCheckUserLogLogins = true;`
# In `LocalSettings.php`, save `$wgCheckUserEventTablesMigrationStage = SCHEMA_COMPAT_WRITE_OLD | SCHEMA_COMPAT_READ_OLD;`
# Login to the wiki
# Replace the line you entered in step 2 with `$wgCheckUserEventTablesMigrationStage = SCHEMA_COMPAT_WRITE_OLD | SCHEMA_COMPAT_WRITE_NEW | SCHEMA_COMPAT_READ_NEW;`
# In the mediawiki core repo, run `docker compose exec mediawiki php maintenance/run.php CheckUser:moveLogEntriesFromCuChanges.php --wiki enwiki --force`
# Go to Special:CheckUser, enter the username of you user you logged in as in step 2, check "Get edits" and submit
**Observed behavior:** Latest entry will have a comment like `Successfully logged in to enwiki as [[User:$user|$user]] ` and will have an XFF.
==== Environment
**Wiki(s):** local docker CheckUser 2.5 (f83dedb) 22:48, 27 September 2023.