This commit is contained in:
syuilo 2018-10-08 01:25:34 +09:00
parent 674764a035
commit 2ede3c0864
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -220,7 +220,6 @@ export const hideNote = async (packedNote: any, meId: mongo.ObjectID) => {
packedNote.poll = null; packedNote.poll = null;
packedNote.cw = null; packedNote.cw = null;
packedNote.tags = []; packedNote.tags = [];
packedNote.tagsLower = [];
packedNote.geo = null; packedNote.geo = null;
packedNote.isHidden = true; packedNote.isHidden = true;
} }
@ -294,6 +293,9 @@ export const pack = async (
_note.id = _note._id; _note.id = _note._id;
delete _note._id; delete _note._id;
delete _note.prev;
delete _note.next;
delete _note.tagsLower;
delete _note._user; delete _note._user;
delete _note._reply; delete _note._reply;
delete _note._renote; delete _note._renote;