I added the is_employee field to the User model, since it's part of the returned JSON (in API 2.2) but wasn't accounted for in this code, as far as I could tell. I need this to get lists of appointed moderators on beta sites; the API doesn't provide an endpoint for that, I have to do it by getting the list of all mods and filtering out employees and Community. I thought this might be a good addition to the code.
I added the
is_employee
field to the User model, since it's part of the returned JSON (in API 2.2) but wasn't accounted for in this code, as far as I could tell. I need this to get lists of appointed moderators on beta sites; the API doesn't provide an endpoint for that, I have to do it by getting the list of all mods and filtering out employees and Community. I thought this might be a good addition to the code.