Page MenuHomePhabricator

Allow users to pull data from their Mute list for personal Scripts
Closed, ResolvedPublic

Description

Provide a method for users to be able to create user Scripts that read data from their Mute list.

For example, this script (https://de.wikipedia.org/wiki/Benutzer:Martin_Kraft/hideUserComments.js) collapses the comments made by a specified list of users. It would be more private if this list was the same as the Mute list in Special:Preferences.

Event Timeline

Perhaps we should expose the mute list via an API endpoint? Obviously it would only return the currently logged-in users mute list.

@dbarratt — yes, that'd probably work. It's important that only the owner of the account can access their Mute list.

For example, this script (https://de.wikipedia.org/wiki/Benutzer:Martin_Kraft/hideUserComments.js) collapses the comments made by a specified list of users.

Is there some research showing that this method (having a public list of users) has significantly more disadvantages than advantages?

dbarratt added a comment.EditedAug 17 2017, 3:00 PM

@TBolliger

I discovered that the mute list is a user preference. Therefor it is already availble via the API:
https://meta.wikimedia.org/w/api.php?action=query&meta=userinfo&uiprop=options
(change the domain to whatever wiki you want the blocklist to be from).

The API only returns the user preferences from the currently logged in user and that preference is only allowed on the same domain (i.e. the script must be on the same domain you are trying to access).

Does this satisfy the requirements?

@Nemo_bis — no research, other than supporting the existing policies on many wikis to not have public enemies lists. Users could still create public lists if they so choose.

@dbarratt — Yes, this sounds like it satisfies the requirements unless we break it in T167902: Build a unified, cross-wiki Mute feature for multiple types of on-wiki and email communication

TBolliger closed this task as Resolved.Aug 17 2017, 5:19 PM