From 2ede3c0864539945c1944ab0ee33439830ab44a4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 8 Oct 2018 01:25:34 +0900 Subject: [PATCH] Clean up --- src/models/note.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/models/note.ts b/src/models/note.ts index 43b8753195..6c16ab054b 100644 --- a/src/models/note.ts +++ b/src/models/note.ts @@ -220,7 +220,6 @@ export const hideNote = async (packedNote: any, meId: mongo.ObjectID) => { packedNote.poll = null; packedNote.cw = null; packedNote.tags = []; - packedNote.tagsLower = []; packedNote.geo = null; packedNote.isHidden = true; } @@ -294,6 +293,9 @@ export const pack = async ( _note.id = _note._id; delete _note._id; + delete _note.prev; + delete _note.next; + delete _note.tagsLower; delete _note._user; delete _note._reply; delete _note._renote;