From b82dad2b9fd284fdc79a1258414ad4d7564b6f8d Mon Sep 17 00:00:00 2001 From: spiral Date: Tue, 6 Jul 2021 18:07:17 -0400 Subject: [PATCH] api: correctly parse 'null' privacy as public --- PluralKit.API/Controllers/v1/JsonModelExt.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.API/Controllers/v1/JsonModelExt.cs b/PluralKit.API/Controllers/v1/JsonModelExt.cs index d9e3adc7..b6d7934e 100644 --- a/PluralKit.API/Controllers/v1/JsonModelExt.cs +++ b/PluralKit.API/Controllers/v1/JsonModelExt.cs @@ -158,7 +158,7 @@ namespace PluralKit.API private static PrivacyLevel ParsePrivacy(this string input, string errorName) { - if (input == null) return PrivacyLevel.Private; + if (input == null) return PrivacyLevel.Public; if (input == "") return PrivacyLevel.Private; if (input == "private") return PrivacyLevel.Private; if (input == "public") return PrivacyLevel.Public;