https://bugzilla.wikimedia.org/show_bug.cgi?id=51180

       Web browser: ---
            Bug ID: 51180
           Summary: AbuseFilter's API do not return the filter id (but
                    returns its name) for private filters
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: AbuseFilter
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: mybugs.m...@gmail.com
                CC: agarr...@wikimedia.org, nischay...@gmail.com
    Classification: Unclassified
   Mobile Platform: ---

In a query like
https://pt.wikipedia.org/w/api.php?action=query&format=jsonfm&list=abuselog&aflfilter=14&afllimit=1&aflprop=ids|filter&afldir=newer
I get a result such as this:
{
    "query-continue": {
        "abuselog": {
            "aflstart": "2009-06-25T18:01:56Z"
        }
    },
    "query": {
        "abuselog": [
            {
                "id": 26323,
                "filter_id": "",
                "filter": "Conte\u00fado de texto como propaganda"
            }
        ]
    }
}

If the query can provide the filter description (in the "filter" property) it
should also show the filter number (in the "filter_id" property). I see no
reason to provide one of these but not the other for private filters.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to