Page MenuHomePhabricator

Add a last_blocked_by variable to AbuseFilter
Open, Needs TriagePublic

Description

Please add the name of the blocker to AbuseFilter's log.
it will be helpful to know the last sysop's username which blocked a user. for example, in some wikis, abusefiler have block permission. It will be helpful to check if the user blocked by the abusefilter.

Event Timeline

Yamaha5 created this task.Jul 20 2017, 2:22 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 20 2017, 2:22 AM

Sorry if I did not catch your message right, but blocks performed by the AbuseFilter are already logged at Special:Log/block as regular blocks are.

Huji renamed this task from AbuseFilter: adding sysop's name which blocked to AbuseFilter's log to Add a last_blocked_by variable to AbuseFilter.Jul 20 2017, 12:53 PM
Huji added a subscriber: Huji.Jul 20 2017, 12:55 PM

@MarcoAurelio I retitled the task to make it clearer. What Yamaha5 is asking for is to to know if that last time a user was blocked (if ever) was by the AbuseFilter account or by another account (i.e. a sysop). I am not sure of what use case he has in mind though.

I think this is technically not easy right now, because of T68961 so I am going to mark that as a blocker for this.

Daimona added a subscriber: Daimona.Mar 7 2018, 5:35 PM

Another thing to take into account is that, as far as I could see, there isn't a method from User class to get last blocks (there's only for current ones).