Page MenuHomePhabricator

Option to watch the user pages of users you block
Closed, ResolvedPublic

Description

There should be an option to add blocked people to ones watchlist when you are blocking them.


Version: unspecified
Severity: enhancement

Details

Reference
bz13950

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:11 PM
bzimport set Reference to bz13950.
bzimport added a subscriber: Unknown Object (MLST).

I started playing around with this in IPBlockForm::doBlock(). I'm having trouble finding a quick way to grab the Title object for the userpage of the person you're blocking though, as User::addWatch() requires a Title object to watch.

Works for the current $wgUser, yes. There's not necessarily a user object for the blocked user. Is if you're blocking a logged in user, but not an anonymous one.

ayg wrote:

Why can't you get a User object for an anonymous user?

Created attachment 4882
Patch against r34306

Implement "watchlist this user" on [[Special:Blockip]]. Adds new system message ipbwatchuser for the label.

Attached:

ayg wrote:

Werdna seems to have applied this with r34307.