This commit is contained in:
syuilo 2018-03-29 15:23:15 +09:00
parent 1968d18e3f
commit 31006fbc25
10 changed files with 65 additions and 24 deletions

View file

@ -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) {