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

Assigned To
None
Priority
Normal
Author
AzaToth
Subscribers
Huji, Chad, aaron and 2 others
Projects
Reference
bz13950
Description

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


Version: unspecified
Severity: enhancement

bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz13950.
AzaToth created this task.Via LegacyMay 5 2008, 1:30 AM
Chad added a comment.Via ConduitMay 5 2008, 8:52 PM

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.

bzimport added a comment.Via ConduitMay 5 2008, 11:45 PM

ayg wrote:

User::getUserPage()?

Chad added a comment.Via ConduitMay 6 2008, 12:33 AM

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.

bzimport added a comment.Via ConduitMay 6 2008, 12:42 AM

ayg wrote:

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

Chad added a comment.Via ConduitMay 6 2008, 12:24 PM

Created attachment 4882
Patch against r34306

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

Attached: diff.patch

bzimport added a comment.Via ConduitMay 6 2008, 1:44 PM

ayg wrote:

Werdna seems to have applied this with r34307.

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.