In T437053, we are introducing a new domain event that is emitted when thanks are sent. There is currently some code in Thanks' LogStore that deals with inserting CheckUser entries. This code should be moved to the CheckUser extension inside a domain event listener.
Description
Related Objects
Event Timeline
I'd rather not this be done, the CheckUser extension only handles storing events from MediaWiki core with all extensions that don't send their event to RecentChanges being fully in charge of calling the relevant CheckUser method CheckUserInsert::updateCheckUserData
This is because the relevant i18n and other checks to decide whether to send this event should be managed in the extension that creates the event
I see. I was misled by a code comment asking for that code to be moved to a hook. I suppose that comment should be deleted then?
Yeah, the comment should be removed (unless you want to handle your own hook in the extension)
This comment has probably existed for a long time :)
My impression is that this pattern is kind of being encouraged with domain events, so we could do that... But on the other hand, I avoided passing the RecentChange object to the domain event, so it might be easier for the code to remain where it is.