This commit is contained in:
parent
1968d18e3f
commit
31006fbc25
10 changed files with 65 additions and 24 deletions
|
|
@ -35,8 +35,7 @@ export type IPost = {
|
|||
reactionCounts: any;
|
||||
mentions: mongo.ObjectID[];
|
||||
geo: {
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
coordinates: number[];
|
||||
altitude: number;
|
||||
accuracy: number;
|
||||
altitudeAccuracy: number;
|
||||
|
|
@ -97,6 +96,7 @@ export const pack = async (
|
|||
delete _post._id;
|
||||
|
||||
delete _post.mentions;
|
||||
if (_post.geo) delete _post.geo.type;
|
||||
|
||||
// Parse text
|
||||
if (_post.text) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue