https://bugzilla.wikimedia.org/show_bug.cgi?id=43096
Web browser: ---
Bug ID: 43096
Summary: Querying suppression events (letype=suppress) through
API returns an empty list
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: API
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
When log events are retrieved through the API, suppression events are filtered
out, even for users in the oversight group. In particular,
mywiki/api.php?action=query&list=logevents&letype=suppress always returns an
empty list.
I think the issue comes from the following function call in
includes/api/ApiQueryLogEvents.php, line 61:
$hideLogs = LogEventsList::getExcludeClause( $db );
Changing it to getExcludeClause( $db, 'user' ) should fix it.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l