Page MenuHomePhabricator

Add the option allowusertalk to blockuser()
Closed, ResolvedPublic


in core

def blockuser(self, user, expiry, reason, anononly=True, nocreate=True,
autoblock=True, noemail=False, reblock=False):

in compat

    def block(self, expiry=None, reason=None, anon=True, noCreate=False,
              onAutoblock=False, banMail=False, watchUser=False,
allowUsertalk=True, reBlock=False, hidename=False):

The option allowusertalk seems to be available in the api:
Should be implemented in Pywikibot too. Do have to take care of$wgBlockAllowsUTEdit (might explain why this isn't implemented in Pywikibot)
now how can i do the block and allowUsertalk=True?

Event Timeline

Aklapper changed the task status from Open to Stalled.May 20 2017, 11:03 AM

Hi @Jar. Is this a task about something to change in the code base (a software bug / feature request), or a support request (a question how to do something)?
For the latter, please see - thanks!

@Aklapper i think the core code is missing the allowUsertalk, you can see the code
anyway i will see the url


Multichill renamed this task from blockuser add allowusertalk to Add the option allowusertalk to blockuser().May 20 2017, 2:38 PM
Multichill updated the task description. (Show Details)
matej_suchanek changed the task status from Stalled to Open.May 23 2017, 7:24 AM
matej_suchanek triaged this task as Medium priority.
matej_suchanek moved this task from Backlog to Probably core only on the Pywikibot-General board.
Dalba assigned this task to Huji.
Dalba added a subscriber: Dalba.

Change 526278 merged by jenkins-bot:
[pywikibot/core@master] Add allowusertalk to the userblock options in pywikibot