mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-05 21:37:55 +00:00
chore: remove API v1
This commit is contained in:
parent
1e86c2d6c4
commit
7aaad288e6
29 changed files with 136 additions and 808 deletions
|
|
@ -60,7 +60,7 @@ public class PrivateController: PKControllerBase
|
|||
var data = new JObject();
|
||||
data.Add("privacy", inner);
|
||||
|
||||
var patch = MemberPatch.FromJSON(data, APIVersion.V2);
|
||||
var patch = MemberPatch.FromJSON(data);
|
||||
|
||||
patch.AssertIsValid();
|
||||
if (patch.Errors.Count > 0)
|
||||
|
|
@ -135,7 +135,7 @@ public class PrivateController: PKControllerBase
|
|||
|
||||
var o = new JObject();
|
||||
|
||||
o.Add("system", system.ToJson(LookupContext.ByOwner, APIVersion.V2));
|
||||
o.Add("system", system.ToJson(LookupContext.ByOwner));
|
||||
o.Add("user", user);
|
||||
o.Add("token", system.Token);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue