diff options
| author | Akihiko Odaki <nekomanma@pixiv.co.jp> | 2018-03-31 19:55:00 +0900 |
|---|---|---|
| committer | Akihiko Odaki <nekomanma@pixiv.co.jp> | 2018-03-31 20:33:14 +0900 |
| commit | 68a9aac9573969311dd00a44536c3ee4c05b883d (patch) | |
| tree | 7d6c502c1e2c61eb3327f678f766f23bda10c1e7 /src/models/user.ts | |
| parent | Store texts as HTML (diff) | |
| download | sharkey-68a9aac9573969311dd00a44536c3ee4c05b883d.tar.gz sharkey-68a9aac9573969311dd00a44536c3ee4c05b883d.tar.bz2 sharkey-68a9aac9573969311dd00a44536c3ee4c05b883d.zip | |
Implement remote status retrieval
Diffstat (limited to 'src/models/user.ts')
| -rw-r--r-- | src/models/user.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/models/user.ts b/src/models/user.ts index 4fbfdec907..4728682d67 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -97,6 +97,9 @@ export type IUser = { account: ILocalAccount | IRemoteAccount; }; +export type ILocalUser = IUser & { account: ILocalAccount }; +export type IRemoteUser = IUser & { account: IRemoteAccount }; + export function init(user): IUser { user._id = new mongo.ObjectID(user._id); user.avatarId = new mongo.ObjectID(user.avatarId); |