Page MenuHomePhabricator

Add a hook called after inserting AbuseLog entries
Open, Needs TriagePublic

Description

This new hook I'm proposing would be called after inserting AbuseLog entries, probably in AbuseFilterRunner::publishEntry. The use case for this is that CheckUser may have a handler for this hook, used to store CU data for the AbuseLog entry. Right now, this is accomplished in AbuseFilterRunner::addLogEntries, by calling an internal CheckUser method (CheckUserHooks::updateCheckUserData) and having to specify additional rights in $wgCheckUserLogAdditionalRights.