mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 15:19:32 +00:00
Replace /.tokens with /.health and /.accounts
This commit is contained in:
parent
089275826c
commit
4120558649
7 changed files with 82 additions and 45 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import std/strutils
|
||||
import jsony
|
||||
import ../types/guestaccount
|
||||
from ../../types import GuestAccount
|
||||
|
|
@ -5,7 +6,7 @@ from ../../types import GuestAccount
|
|||
proc toGuestAccount(account: RawAccount): GuestAccount =
|
||||
let id = account.oauthToken[0 ..< account.oauthToken.find('-')]
|
||||
result = GuestAccount(
|
||||
id: id,
|
||||
id: parseBiggestInt(id),
|
||||
oauthToken: account.oauthToken,
|
||||
oauthSecret: account.oauthTokenSecret
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue