mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat: remove tz in api v1, add deprecation notice
This commit is contained in:
parent
cc4e659cec
commit
bd166502cc
2 changed files with 6 additions and 4 deletions
|
|
@ -77,7 +77,9 @@ public static class PKSystemExt
|
|||
{
|
||||
case APIVersion.V1:
|
||||
{
|
||||
o.Add("tz", null);
|
||||
// this property was moved to SystemConfig
|
||||
// see notice in /api/legacy docs
|
||||
o.Add("tz", "UTC");
|
||||
|
||||
o.Add("description_privacy",
|
||||
ctx == LookupContext.ByOwner ? system.DescriptionPrivacy.ToJsonString() : null);
|
||||
|
|
@ -91,9 +93,6 @@ public static class PKSystemExt
|
|||
}
|
||||
case APIVersion.V2:
|
||||
{
|
||||
// todo: remove this
|
||||
o.Add("timezone", null);
|
||||
|
||||
if (ctx == LookupContext.ByOwner)
|
||||
{
|
||||
// todo: should this be moved to a different JSON model?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue