summaryrefslogtreecommitdiff
path: root/src/api/models/post.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-28 16:04:44 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-28 16:04:44 +0900
commitbed17efd1b40e05e49b4de50c118f2acf804b95e (patch)
tree405fbe0b07dde1c05ecb6703b0e99f630a0f6b32 /src/api/models/post.ts
parentwip (diff)
downloadsharkey-bed17efd1b40e05e49b4de50c118f2acf804b95e.tar.gz
sharkey-bed17efd1b40e05e49b4de50c118f2acf804b95e.tar.bz2
sharkey-bed17efd1b40e05e49b4de50c118f2acf804b95e.zip
wip
Diffstat (limited to 'src/api/models/post.ts')
-rw-r--r--src/api/models/post.ts18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/api/models/post.ts b/src/api/models/post.ts
index c37c8371c0..fc44256516 100644
--- a/src/api/models/post.ts
+++ b/src/api/models/post.ts
@@ -20,18 +20,16 @@ export function isValidText(text: string): boolean {
export type IPost = {
_id: mongo.ObjectID;
- channel_id: mongo.ObjectID;
- created_at: Date;
- media_ids: mongo.ObjectID[];
- reply_id: mongo.ObjectID;
- repost_id: mongo.ObjectID;
+ channelId: mongo.ObjectID;
+ createdAt: Date;
+ mediaIds: mongo.ObjectID[];
+ replyId: mongo.ObjectID;
+ repostId: mongo.ObjectID;
poll: any; // todo
text: string;
- user_id: mongo.ObjectID;
- app_id: mongo.ObjectID;
- category: string;
- is_category_verified: boolean;
- via_mobile: boolean;
+ userId: mongo.ObjectID;
+ appId: mongo.ObjectID;
+ viaMobile: boolean;
geo: {
latitude: number;
longitude: number;