API: is_group_owner returning null

Have just recently upgraded to 2.6.0 beta1, can’t recall which version of 2.5.0 I was on previously, and now the API call to lookup a group is returning null for is_group_owner, instead of true/false. I’ve been trying to find a commit in GitHub that might explain the change in behaviour, but haven’t been able to identify anything.

Is this a bug, or do 3rd party API libraries need to get updated to support a maybe boolean return type?

1 Like

HI @jessicah,

it was indeed slightly awkward since the fix. I just pushed this commit which will follow more how we do at other places:

https://github.com/discourse/discourse/pull/10466

Basically if you are group_owner it will return true if you are not, the field won’t be present.

4 Likes