mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
api: correctly parse 'null' privacy as public
This commit is contained in:
parent
af801e2b01
commit
b82dad2b9f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue