api: correctly parse 'null' privacy as public

This commit is contained in:
spiral 2021-07-06 18:07:17 -04:00
parent af801e2b01
commit b82dad2b9f
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -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;