Page MenuHomePhabricator

GlobalBlocking extension should set 'wgRelevantUserName'
Closed, ResolvedPublic

Description

The GlobalBlocking extension should set wgRelevantUserName so that useful links related to the IP being blocked can be shown.

Event Timeline

On which page? It seems only on Special:GlobalUser useful, when it gets preloaded with an ip adress (Special:GlobalUser/<ip>)

Maybe on Special:RemoveGlobalBlock, too. Or Special:GlobalBlockStatus?

This can be done on the software by calling Skin::setRelevantUser

@Umherirrender I imagine you meant Special:GlobalBlock and not Special:GlobalUser (as that one doesn't exist), and it's precisely that :) It'll be useful for adding links like global contributions for that IP, filter and spam hits, links to tools like stalktoy, or to be used on user scripts. Personally, I have scripts that send me to Special:CheckUser on loginwiki, and it'd then prefill the IP for me.

Thanks for the tip on how to do it!

Change 755461 had a related patch set uploaded (by Tks4Fish; author: Tks4Fish):

[mediawiki/extensions/GlobalBlocking@master] SpecialGlobalBlock, SpecialGlobalBlockStatus, SpecialRemoveGlobalBlock: add RelevantUser

https://gerrit.wikimedia.org/r/755461

Change 755461 merged by jenkins-bot:

[mediawiki/extensions/GlobalBlocking@master] SpecialGlobalBlock, SpecialGlobalBlockStatus, SpecialRemoveGlobalBlock: add RelevantUser

https://gerrit.wikimedia.org/r/755461