api: correctly parse 'null' privacy as public
This commit is contained in:
parent
af801e2b01
commit
b82dad2b9f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user