Check boolean

FossilOrigin-Name: 7601100a897fb67f13f5a4ca5e2e563f9cf1112738040d75a10b9db04bb68928
This commit is contained in:
me@ow.nekobit.net 2022-04-05 03:25:11 +00:00
parent 15f1142186
commit b1c40c9a64

View file

@ -35,7 +35,8 @@ struct _mstdnt_relationship_flags_args
static void _mstdnt_val_relationship_flag_call(cJSON* v, void* _type)
{
struct _mstdnt_relationship_flags_args* arg = _type;
*(arg->flags) |= arg->flag;
if (cJSON_IsTrue(v))
*(arg->flags) |= arg->flag;
}
int mstdnt_relationship_json(struct mstdnt_relationship* relationship, cJSON* js)