mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 22:35:38 +01:00
wip
This commit is contained in:
parent
65069d5fdb
commit
bed17efd1b
2 changed files with 30 additions and 10 deletions
|
@ -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;
|
||||
|
|
|
@ -156,3 +156,25 @@ db.postReactions.update({}, {
|
|||
post_id: 'postId'
|
||||
}
|
||||
}, false, true);
|
||||
|
||||
db.post_watching.renameCollection('postWatching');
|
||||
db.postWatching.update({}, {
|
||||
$rename: {
|
||||
created_at: 'createdAt',
|
||||
user_id: 'userId',
|
||||
post_id: 'postId'
|
||||
}
|
||||
}, false, true);
|
||||
|
||||
db.posts.update({}, {
|
||||
$rename: {
|
||||
created_at: 'createdAt',
|
||||
channel_id: 'channelId',
|
||||
user_id: 'userId',
|
||||
app_id: 'appId',
|
||||
media_ids: 'mediaIds',
|
||||
reply_id: 'replyId',
|
||||
repost_id: 'repostId',
|
||||
via_mobile: 'viaMobile'
|
||||
}
|
||||
}, false, true);
|
||||
|
|
Loading…
Reference in a new issue